mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Omit catch block errors when not needed
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class SayCommand extends Command {
|
||||
try {
|
||||
if (msg.channel.type === 'text' && msg.deletable) await msg.delete();
|
||||
return msg.say(text);
|
||||
} catch (err) {
|
||||
} catch {
|
||||
return msg.say(text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user