-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbot.ts
More file actions
49 lines (45 loc) · 1.03 KB
/
Copy pathbot.ts
File metadata and controls
49 lines (45 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { createBot, GatewayIntents } from "discordeno";
import { requireEnv } from "./helpers/env.ts";
const discordToken = requireEnv("DISCORD_TOKEN");
const client = createBot({
// botId: config.discord.botID,
token: discordToken,
intents: GatewayIntents.Guilds,
desiredProperties: {
interaction: {
id: true,
applicationId: true,
type: true,
guildId: true,
channelId: true,
member: true,
user: true,
token: true,
version: true,
message: true,
data: true,
locale: true,
guildLocale: true,
appPermissions: true,
context: true,
},
},
});
// client.transformers.desiredProperties.interaction = {
// id: true,
// applicationId: true,
// type: true,
// guildId: true,
// channelId: true,
// member: true,
// user: true,
// token: true,
// version: true,
// message: true,
// data: true,
// locale: true,
// guildLocale: true,
// appPermissions: true,
// };
export { client };
export type events = typeof client.events;