github.com/fumiama/NanoBot@v0.0.0-20231122134259-c22d8183efca/intent.go (about) 1 package nano 2 3 // https://bot.q.qq.com/wiki/develop/api/gateway/intents.html 4 const ( 5 IntentGuilds = 1 << 0 6 IntentGuildMembers = 1 << 1 7 IntentGuildMessages = 1 << 9 8 IntentGuildMessageReactions = 1 << 10 9 IntentDirectMessage = 1 << 12 10 IntentOpenForumsEvent = 1 << 18 11 IntentAudioOrLiveChannelMember = 1 << 19 12 IntentQQ = 1 << 25 13 IntentInteraction = 1 << 26 14 IntentMessageAudit = 1 << 27 15 IntentForumsEvent = 1 << 28 16 IntentAudioAction = 1 << 29 17 IntentPublicGuildMessages = 1 << 30 18 19 // IntentAllGuild 监听全部频道事件 20 IntentAllGuild = IntentGuilds | IntentGuildMembers | IntentGuildMessages | IntentGuildMessageReactions | 21 IntentDirectMessage | IntentOpenForumsEvent | IntentAudioOrLiveChannelMember | IntentInteraction | 22 IntentMessageAudit | IntentForumsEvent | IntentAudioAction | IntentPublicGuildMessages 23 // IntentPublic 监听频道公域事件 24 IntentGuildPublic = IntentGuilds | IntentGuildMembers | IntentGuildMessageReactions | 25 IntentDirectMessage | IntentOpenForumsEvent | IntentAudioOrLiveChannelMember | IntentInteraction | 26 IntentMessageAudit | IntentAudioAction | IntentPublicGuildMessages 27 // IntentPrivate 监听频道私域事件 28 IntentGuildPrivate = IntentGuilds | IntentGuildMembers | IntentGuildMessages | IntentGuildMessageReactions | 29 IntentDirectMessage | IntentAudioOrLiveChannelMember | IntentInteraction | 30 IntentMessageAudit | IntentForumsEvent | IntentAudioAction 31 )