Files
discordeno/examples/minimal/src/bot.ts
Fleny f199bbf71c build(dev-deps): Update biome to v2 (#4246)
* 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>
2025-08-09 12:45:04 -05:00

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> }