mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
* update biome to v2 * Run biome check --write * Update biome.jsonc Co-authored-by: Link <lts20050703@gmail.com> * Fix config error * Bump biome version * Update website/yarn.lock * Update biome to 2.1.3 --------- Co-authored-by: Link <lts20050703@gmail.com>
24 lines
562 B
TypeScript
24 lines
562 B
TypeScript
import { Collection, createBot, Intents } from '@discordeno/bot'
|
|
import { configs } from './config.js'
|
|
import type { Command } from './types/commands.js'
|
|
|
|
const rawBot = createBot({
|
|
token: configs.token,
|
|
intents: Intents.Guilds,
|
|
desiredProperties: {
|
|
interaction: {
|
|
id: true,
|
|
type: true,
|
|
data: true,
|
|
token: true,
|
|
},
|
|
},
|
|
})
|
|
|
|
export const bot = rawBot as BotWithCommands
|
|
|
|
// Create the command collection
|
|
bot.commands = new Collection()
|
|
|
|
export type BotWithCommands = typeof rawBot & { commands: Collection<string, Command> }
|