fix bot crash on bot response with only text

This commit is contained in:
SowinskiBraeden committed 2022-09-24 10:41:30 -07:00
1 parent 8fbe602597
commit 7fbbd2d70f
15 files changed
+20 -20

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ module.exports = {
if (permissions.includes("MANAGE_GUILD")) canUseCommand = true;
if (client.exists(GuildDB.botAdmin) && interaction.member.roles.includes(GuildDB.botAdmin)) canUseCommand = true;
if (!canUseCommand) return interaction.send('You don\'t have the permissions to use this command.');
if (!canUseCommand) return interaction.send({ content: 'You don\'t have the permissions to use this command.' });
const targetUserID = args[2].value.replace('<@!', '').replace('>', '');
let banking = await client.dbo.collection("banks").findOne({"banking.userID": targetUserID}).then(banking => banking);