mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
String Changes, Don't register tons of defaults
This commit is contained in:
@@ -12,8 +12,8 @@ module.exports = class WebhookCommand extends commando.Command {
|
||||
],
|
||||
group: 'textedit',
|
||||
memberName: 'webhook',
|
||||
description: "Posts a message to the webhook defined in config. (;webhook Hey guys!)",
|
||||
examples: [";webhook Hey guys!"],
|
||||
description: 'Posts a message to the webhook defined in config. (;webhook Hey guys!)',
|
||||
examples: [';webhook Hey guys!'],
|
||||
guildOnly: true,
|
||||
args: [{
|
||||
key: 'text',
|
||||
@@ -39,7 +39,7 @@ module.exports = class WebhookCommand extends commando.Command {
|
||||
.send({
|
||||
content: content
|
||||
});
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(':x: Error! Message failed to send!');
|
||||
|
||||
Reference in New Issue
Block a user