mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 16:22:08 +00:00
typings: optional reason for setNSFW and add deleted properties (#3505)
* typings: optional reason for setNSFW and add deleted properties * typings(Guild): setDefaultMessageNotifications' reason is also optional
This commit is contained in:
parent
94ce19dd1a
commit
a8e365743c
1 changed files with 8 additions and 2 deletions
10
typings/index.d.ts
vendored
10
typings/index.d.ts
vendored
|
|
@ -50,6 +50,7 @@ declare module 'discord.js' {
|
||||||
public readonly client: Client;
|
public readonly client: Client;
|
||||||
public readonly createdAt: Date;
|
public readonly createdAt: Date;
|
||||||
public readonly createdTimestamp: number;
|
public readonly createdTimestamp: number;
|
||||||
|
public deleted: boolean;
|
||||||
public id: Snowflake;
|
public id: Snowflake;
|
||||||
public type: 'dm' | 'group' | 'text' | 'voice' | 'category' | 'news' | 'store';
|
public type: 'dm' | 'group' | 'text' | 'voice' | 'category' | 'news' | 'store';
|
||||||
public delete(): Promise<Channel>;
|
public delete(): Promise<Channel>;
|
||||||
|
|
@ -408,6 +409,7 @@ declare module 'discord.js' {
|
||||||
public readonly createdAt: Date;
|
public readonly createdAt: Date;
|
||||||
public readonly createdTimestamp: number;
|
public readonly createdTimestamp: number;
|
||||||
public readonly deletable: boolean;
|
public readonly deletable: boolean;
|
||||||
|
public deleted: boolean;
|
||||||
public guild: Guild;
|
public guild: Guild;
|
||||||
public id: Snowflake;
|
public id: Snowflake;
|
||||||
public readonly identifier: string;
|
public readonly identifier: string;
|
||||||
|
|
@ -486,6 +488,7 @@ declare module 'discord.js' {
|
||||||
public available: boolean;
|
public available: boolean;
|
||||||
public banner: string | null;
|
public banner: string | null;
|
||||||
public readonly bannerURL: string | null;
|
public readonly bannerURL: string | null;
|
||||||
|
public deleted: boolean;
|
||||||
public description: string | null;
|
public description: string | null;
|
||||||
public channels: Collection<Snowflake, GuildChannel>;
|
public channels: Collection<Snowflake, GuildChannel>;
|
||||||
public defaultMessageNotifications: DefaultMessageNotifications | number;
|
public defaultMessageNotifications: DefaultMessageNotifications | number;
|
||||||
|
|
@ -569,7 +572,7 @@ declare module 'discord.js' {
|
||||||
public setAFKTimeout(afkTimeout: number, reason?: string): Promise<Guild>;
|
public setAFKTimeout(afkTimeout: number, reason?: string): Promise<Guild>;
|
||||||
public setChannelPosition(channel: string | GuildChannel, position: number, relative?: boolean): Promise<Guild>;
|
public setChannelPosition(channel: string | GuildChannel, position: number, relative?: boolean): Promise<Guild>;
|
||||||
public setChannelPositions(channelPositions: ChannelPosition[]): Promise<Guild>;
|
public setChannelPositions(channelPositions: ChannelPosition[]): Promise<Guild>;
|
||||||
public setDefaultMessageNotifications(defaultMessageNotifications: DefaultMessageNotifications, reason: string): Promise<Guild>;
|
public setDefaultMessageNotifications(defaultMessageNotifications: DefaultMessageNotifications, reason?: string): Promise<Guild>;
|
||||||
public setEmbed(embed: GuildEmbedData, reason?: string): Promise<Guild>;
|
public setEmbed(embed: GuildEmbedData, reason?: string): Promise<Guild>;
|
||||||
public setExplicitContentFilter(explicitContentFilter: number, reason?: string): Promise<Guild>;
|
public setExplicitContentFilter(explicitContentFilter: number, reason?: string): Promise<Guild>;
|
||||||
public setIcon(icon: Base64Resolvable, reason?: string): Promise<Guild>;
|
public setIcon(icon: Base64Resolvable, reason?: string): Promise<Guild>;
|
||||||
|
|
@ -654,6 +657,7 @@ declare module 'discord.js' {
|
||||||
public readonly client: Client;
|
public readonly client: Client;
|
||||||
public readonly colorRole: Role;
|
public readonly colorRole: Role;
|
||||||
public readonly deaf: boolean;
|
public readonly deaf: boolean;
|
||||||
|
public deleted: boolean;
|
||||||
public readonly displayColor: number;
|
public readonly displayColor: number;
|
||||||
public readonly displayHexColor: string;
|
public readonly displayHexColor: string;
|
||||||
public readonly displayName: string;
|
public readonly displayName: string;
|
||||||
|
|
@ -741,6 +745,7 @@ declare module 'discord.js' {
|
||||||
public readonly createdAt: Date;
|
public readonly createdAt: Date;
|
||||||
public createdTimestamp: number;
|
public createdTimestamp: number;
|
||||||
public readonly deletable: boolean;
|
public readonly deletable: boolean;
|
||||||
|
public deleted: boolean;
|
||||||
public readonly editable: boolean;
|
public readonly editable: boolean;
|
||||||
public readonly editedAt: Date;
|
public readonly editedAt: Date;
|
||||||
public editedTimestamp: number;
|
public editedTimestamp: number;
|
||||||
|
|
@ -1082,6 +1087,7 @@ declare module 'discord.js' {
|
||||||
public color: number;
|
public color: number;
|
||||||
public readonly createdAt: Date;
|
public readonly createdAt: Date;
|
||||||
public readonly createdTimestamp: number;
|
public readonly createdTimestamp: number;
|
||||||
|
public deleted: boolean;
|
||||||
public readonly editable: boolean;
|
public readonly editable: boolean;
|
||||||
public guild: Guild;
|
public guild: Guild;
|
||||||
public readonly hexColor: string;
|
public readonly hexColor: string;
|
||||||
|
|
@ -1272,7 +1278,7 @@ declare module 'discord.js' {
|
||||||
public setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise<TextChannel>;
|
public setRateLimitPerUser(rateLimitPerUser: number, reason?: string): Promise<TextChannel>;
|
||||||
public createWebhook(name: string, avatar: BufferResolvable, reason?: string): Promise<Webhook>;
|
public createWebhook(name: string, avatar: BufferResolvable, reason?: string): Promise<Webhook>;
|
||||||
public fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>;
|
public fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>;
|
||||||
public setNSFW(nsfw: boolean, reason: string): Promise<this>;
|
public setNSFW(nsfw: boolean, reason?: string): Promise<this>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class User extends PartialTextBasedChannel() {
|
export class User extends PartialTextBasedChannel() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue