fix(Modal.reply): Remove exclamation mark
This commit is contained in:
parent
b17ae69c1e
commit
07281580a4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user