![]() ![]() You can do this in your verification application or by reaching out to Discord's support team open in new window, including why you require access to each privileged intent.īefore storming off and doing so, you should stop and carefully think about if you need these events. If your bot is already verified or is about to require verification open in new window, you need to request privileged intents. If your bot is not verified and in less than 100 guilds, you can enable privileged gateway intents in the Discord Developer Portal open in new window under "Privileged Gateway Intents" in the "Bot" section. ![]() At the time of writing this article, privileged intents are GuildPresences, MessageContent and GuildMembers. # Privileged Intentsĭiscord defines some intents as "privileged" due to the data's sensitive nature. Reducing the number of unnecessary events your bot receives improves performance and reduces bandwidth and memory usage. Rather than blindly enabling all intents, consider what information you actually need. If you do not specify intents, discord.js will throw an error. If you omit DirectMessageTyping, for example, you will no longer receive typing events from direct messages. Intents are named groups of pre-defined WebSocket events, which the discord.js client will receive. ![]() Gateway Intents were introduced by Discord so bot developers can choose which events their bot receives based on which data it needs to function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |