mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Fix
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class SayCommand extends Command {
|
||||
|
||||
async run(msg, { text }) {
|
||||
try {
|
||||
if (msg.channel.type === 'text' && msg.deletable) await msg.delete();
|
||||
if (msg.guild && msg.deletable) await msg.delete();
|
||||
return msg.say(text);
|
||||
} catch {
|
||||
return msg.say(text);
|
||||
|
||||
Reference in New Issue
Block a user