Skip to content

Commit

Permalink
typings: more explicit typings for client events involving channels
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed May 31, 2021
1 parent 8a77e6e commit e2462d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typings/index.d.ts
Expand Up @@ -2603,7 +2603,7 @@ declare module 'discord.js' {
applicationCommandUpdate: [oldCommand: ApplicationCommand | null, newCommand: ApplicationCommand];
channelCreate: [channel: GuildChannel];
channelDelete: [channel: DMChannel | GuildChannel];
channelPinsUpdate: [channel: Channel | PartialDMChannel, date: Date];
channelPinsUpdate: [channel: TextChannel | NewsChannel | DMChannel | PartialDMChannel, date: Date];
channelUpdate: [oldChannel: DMChannel | GuildChannel, newChannel: DMChannel | GuildChannel];
debug: [message: string];
warn: [message: string];
Expand Down Expand Up @@ -2646,7 +2646,7 @@ declare module 'discord.js' {
roleCreate: [role: Role];
roleDelete: [role: Role];
roleUpdate: [oldRole: Role, newRole: Role];
typingStart: [channel: Channel | PartialDMChannel, user: User | PartialUser];
typingStart: [channel: TextChannel | NewsChannel | DMChannel | PartialDMChannel, user: User | PartialUser];
userUpdate: [oldUser: User | PartialUser, newUser: User];
voiceStateUpdate: [oldState: VoiceState, newState: VoiceState];
webhookUpdate: [channel: TextChannel];
Expand Down

0 comments on commit e2462d7

Please sign in to comment.