Basic Bot setup
This commit is contained in:
7
src/utils/getApplicationCommands.ts
Normal file
7
src/utils/getApplicationCommands.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Client } from "discord.js";
|
||||
|
||||
export default async (client: Client<true>) => {
|
||||
const applicationCommands = await client.application.commands;
|
||||
await applicationCommands.fetch();
|
||||
return applicationCommands;
|
||||
}
|
||||
Reference in New Issue
Block a user