Make owner commands cleaner

This commit is contained in:
Dragon Fire
2024-04-26 23:47:58 -04:00
parent 88aa793d99
commit 085546e0cf
7 changed files with 12 additions and 41 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ module.exports = class IpCommand extends Command {
const { body } = await request
.get('https://api.ipify.org/')
.query({ format: 'json' });
await msg.direct(body.ip);
return msg.say('📬 Sent the IP to your DMs!');
if (msg.guild) await msg.say('📬 Sent the IP to your DMs!');
return msg.direct(body.ip);
}
};