mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
backport: Guild#{fetchEmbed,setEmbed} (#2778)
* backport: Guild Embeds * fix: Added missing return * docs: Updated typings
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -533,6 +533,7 @@ declare module 'discord.js' {
|
||||
public equals(guild: Guild): boolean;
|
||||
public fetchAuditLogs(options?: GuildAuditLogsFetchOptions): Promise<GuildAuditLogs>;
|
||||
public fetchBans(): Promise<Collection<Snowflake, User>>;
|
||||
public fetchEmbed(): Promise<GuildEmbedData>;
|
||||
public fetchInvites(): Promise<Collection<Snowflake, Invite>>;
|
||||
public fetchMember(user: UserResolvable, cache?: boolean): Promise<GuildMember>;
|
||||
public fetchMembers(query?: string, limit?: number): Promise<Guild>;
|
||||
@@ -547,6 +548,7 @@ declare module 'discord.js' {
|
||||
public setChannelPosition(channel: string | GuildChannel, position: number, relative?: boolean): Promise<Guild>;
|
||||
public setChannelPositions(channelPositions: ChannelPosition[]): Promise<Guild>;
|
||||
public setDefaultMessageNotification(defaultMessageNotifications: DefaultMessageNotifications, reason: string): Promise<Guild>;
|
||||
public setEmbed(embed: GuildEmbedData, reason?: string): Promise<Guild>;
|
||||
public setExcplicitContentFilter(explicitContentFilter: number, reason?: string): Promise<Guild>;
|
||||
public setIcon(icon: Base64Resolvable, reason?: string): Promise<Guild>;
|
||||
public setName(name: string, reason?: string): Promise<Guild>;
|
||||
@@ -1787,6 +1789,11 @@ declare module 'discord.js' {
|
||||
splash?: Base64Resolvable;
|
||||
};
|
||||
|
||||
type GuildEmbedData = {
|
||||
enabled: boolean;
|
||||
channel: ChannelResolvable;
|
||||
};
|
||||
|
||||
type GuildMemberEditData = {
|
||||
nick?: string;
|
||||
roles?: Collection<Snowflake, Role> | Role[] | Snowflake[];
|
||||
|
||||
Reference in New Issue
Block a user