Skip to content

Commit 68b73be

Browse files
committed
Empty command helper
1 parent 68fc82f commit 68b73be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bot.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ module.exports = async (config: typeof Config, logger: Logger, options: {[k: str
132132
const bot = new Bot(config, logger, options)
133133
bot.login(config.bot.token)
134134

135+
// Empty commands -- ToDo: Maybe export this and below command loading into `/reload commands`?
136+
// await bot.application?.commands.set([])
137+
135138
// Register event handlers
136139
const eventFiles = fs.readdirSync('./dist/events').filter((file) => file.endsWith('.js'))
137140
await bPromise.each(eventFiles, file => {

0 commit comments

Comments
 (0)