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:
ITOH
2022-05-24 23:16:01 +02:00
parent 3a5263c4e9
commit d7883855ec
13 changed files with 35 additions and 37 deletions
+10 -11
View File
@@ -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);