feat(types): add types for new events

This commit is contained in:
DjDeveloperr 2020-12-02 15:47:50 +05:30
parent c7ef17a6d2
commit 946f262656
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,7 @@ import { messageReactionRemoveAll } from './messageReactionRemoveAll.ts'
import { messageReactionRemoveEmoji } from './messageReactionRemoveEmoji.ts'
import { guildMembersChunk } from './guildMembersChunk.ts'
import { presenceUpdate } from './presenceUpdate.ts'
import { MessageReaction } from '../../structures/messageReaction.ts'
export const gatewayHandlers: {
[eventCode in GatewayEvents]: GatewayEventHandler | undefined
@ -129,6 +130,10 @@ export interface ClientEvents extends EventTypes {
uncached: Set<string>
) => void
messageUpdate: (before: Message, after: Message) => void
messageReactionAdd: (reaction: MessageReaction, user: User) => void
messageReactionRemove: (reaction: MessageReaction, user: User) => void
messageReactionRemoveAll: (message: Message) => void
messageReactionRemoveEmoji: (message: Message, emoji: Emoji) => void
typingStart: (
user: User,
channel: TextChannel,