mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Beep
This commit is contained in:
@@ -8,6 +8,8 @@ module.exports = class SayCommand extends Command {
|
||||
group: 'text-edit',
|
||||
memberName: 'say',
|
||||
description: 'Make XiaoBot say what you wish.',
|
||||
guildOnly: true,
|
||||
clientPermissions: ['MANAGE_MESSAGES', 'READ_MESSAGE_HISTORY'],
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
@@ -19,9 +21,7 @@ module.exports = class SayCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, { text }) {
|
||||
if (msg.channel.type === 'text' && msg.channel.permissionsFor(this.client.user).has('MANAGE_MESSAGES')) {
|
||||
await msg.delete();
|
||||
}
|
||||
await msg.delete();
|
||||
return msg.say(text);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user