mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
refactor(.github,README,gateway,plugins/fileloader,tests,types)!: make intent calculation manual
This changes the calculation of intents to be manual to the dev. This is to improve overall consistency of our code base, also it is not a big drawback for users since intents are usually done once and then never (seldom) touched again.
This commit is contained in:
+10
-11
@@ -26,6 +26,7 @@ import { categoryChildrenTest } from "./helpers/channels/categoryChannels.ts";
|
||||
import { deleteChannelOverwriteTests } from "./helpers/channels/deleteChannelOverwrite.ts";
|
||||
import { editChannelTests } from "./helpers/channels/editChannel.ts";
|
||||
import { CACHED_COMMUNITY_GUILD_ID, sanitizeMode } from "./constants.ts";
|
||||
import { Intents } from "../types/shared.ts";
|
||||
|
||||
console.log("[Tests] Starting test preparation");
|
||||
dotenv({ export: true, path: `${Deno.cwd()}/.env` });
|
||||
@@ -45,17 +46,15 @@ const baseBot = createBot({
|
||||
},
|
||||
// debug: console.log,
|
||||
}),
|
||||
intents: [
|
||||
"Guilds",
|
||||
"GuildEmojis",
|
||||
"GuildMessages",
|
||||
"GuildMessageReactions",
|
||||
"GuildBans",
|
||||
"GuildMembers",
|
||||
"GuildScheduledEvents",
|
||||
"GuildVoiceStates",
|
||||
"GuildPresences",
|
||||
],
|
||||
intents: Intents.Guilds |
|
||||
Intents.GuildEmojis |
|
||||
Intents.GuildMessages |
|
||||
Intents.GuildMessageReactions |
|
||||
Intents.GuildBans |
|
||||
Intents.GuildMembers |
|
||||
Intents.GuildScheduledEvents |
|
||||
Intents.GuildVoiceStates |
|
||||
Intents.GuildPresences,
|
||||
});
|
||||
|
||||
export const bot = enableCachePlugin(baseBot);
|
||||
|
||||
Reference in New Issue
Block a user