Properties
lastMessageID
lastMessageID: string
messages
Methods
addMessageReaction
- addMessageReaction(messageID: string, reaction: string): Promise<void>
- addMessageReaction(messageID: string, reaction: string, userID: string): Promise<void>
-
Parameters
-
messageID: string
-
reaction: string
Returns Promise<void>
-
Parameters
-
messageID: string
-
reaction: string
-
userID: string
Returns Promise<void>
createMessage
-
Parameters
deleteMessage
- deleteMessage(messageID: string, reason?: string): Promise<void>
-
Parameters
-
messageID: string
-
Optional reason: string
Returns Promise<void>
editMessage
-
Parameters
getMessage
-
Parameters
getMessageReaction
- getMessageReaction(messageID: string, reaction: string, limit?: number, before?: string, after?: string): Promise<User[]>
-
Parameters
-
messageID: string
-
reaction: string
-
Optional limit: number
-
Optional before: string
-
Optional after: string
Returns Promise<User[]>
getMessages
- getMessages(limit?: number, before?: string, after?: string, around?: string): Promise<Message<TextableChannel>[]>
-
Parameters
-
Optional limit: number
-
Optional before: string
-
Optional after: string
-
Optional around: string
getPins
-
pinMessage
- pinMessage(messageID: string): Promise<void>
-
Parameters
Returns Promise<void>
removeMessageReaction
- removeMessageReaction(messageID: string, reaction: string, userID?: string): Promise<void>
-
Parameters
-
messageID: string
-
reaction: string
-
Optional userID: string
Returns Promise<void>
sendTyping
- sendTyping(): Promise<void>
-
Returns Promise<void>
unpinMessage
- unpinMessage(messageID: string): Promise<void>
-
Parameters
Returns Promise<void>
unsendMessage
- unsendMessage(messageID: string): Promise<void>
-
Parameters
Returns Promise<void>