1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-07 19:50:24 +08:00

finish intent

This commit is contained in:
源文雨
2023-10-14 13:37:45 +09:00
parent 5a088daf11
commit 9918dd8ec8
4 changed files with 66 additions and 1 deletions

View File

@@ -47,3 +47,23 @@ type WebsocketPayload struct {
S int `json:"s"`
T string `json:"t"`
}
// https://bot.q.qq.com/wiki/develop/api/gateway/intents.html
const (
IntentGuilds = 1 << 0
IntentGuildMembers = 1 << 1
IntentGuildMessages = 1 << 9
IntentGuildMessageReactions = 1 << 10
IntentDirectMessage = 1 << 12
IntentOpenForumsEvent = 1 << 18
IntentAudioOrLiveChannelMember = 1 << 19
IntentInteraction = 1 << 26
IntentMessageAudit = 1 << 27
IntentForumsEvent = 1 << 28
IntentAudioAction = 1 << 29
IntentPublicGuildMessages = 1 << 30
IntentAll = IntentGuilds | IntentGuildMembers | IntentGuildMessages | IntentGuildMessageReactions |
IntentDirectMessage | IntentOpenForumsEvent | IntentAudioOrLiveChannelMember | IntentInteraction |
IntentMessageAudit | IntentForumsEvent | IntentAudioAction | IntentPublicGuildMessages
)