mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-04 12:58:11 +03:00
Assert that client.application is not null
This commit is contained in:
@@ -32,7 +32,7 @@ const rest = new REST({
|
||||
export const registerSlashCommands = async (client: Client): Promise<void> => {
|
||||
try {
|
||||
logger.info("Registering slash commands");
|
||||
await rest.put(Routes.applicationCommands(client.application.id), {
|
||||
await rest.put(Routes.applicationCommands(client.application!.id), {
|
||||
body: slashCommands.map((command) => command.info)
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user