Assert that client.application is not null

This commit is contained in:
zkldi
2021-09-05 13:14:27 +01:00
parent 46ef136e01
commit 73aa2fd73b
+1 -1
View File
@@ -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) {