From 07281580a487fbc5098c3b8b23ab618da37848e0 Mon Sep 17 00:00:00 2001 From: Marcos Date: Fri, 8 Jul 2022 11:27:43 -0300 Subject: [PATCH] fix(Modal.reply): Remove exclamation mark --- src/structures/Modal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/structures/Modal.js b/src/structures/Modal.js index 4be32ed..74e3f03 100644 --- a/src/structures/Modal.js +++ b/src/structures/Modal.js @@ -152,8 +152,7 @@ class Modal { * }) */ async reply(guildId, channelId, ...data) { - // Test - if (this.application) throw new Error('Modal cannot reply (Missing Application)'); + if (!this.application) throw new Error('Modal cannot reply (Missing Application)'); const guild = this.client.guilds.cache.get(guildId); if (!guild) throw new Error('GUILD_NOT_FOUND', `Guild ${guildId} not found`); const channel = guild.channels.cache.get(channelId);