Add poll chat command with reaction voting
This commit is contained in:
@@ -120,7 +120,11 @@ export class CoreClient {
|
||||
}
|
||||
|
||||
async sendMessage(channelId: string, content: string) {
|
||||
await this.request("message.send", { channelId, content });
|
||||
return this.request<{ messageId?: string }>("message.send", { channelId, content });
|
||||
}
|
||||
|
||||
async reactionAdd(channelId: string, messageId: string, emoji: string) {
|
||||
return this.request("reaction.add", { channelId, messageId, emoji });
|
||||
}
|
||||
|
||||
async sendDm(userId: string, content: string) {
|
||||
|
||||
Reference in New Issue
Block a user