mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix in Rin Command's Return
This commit is contained in:
@@ -34,12 +34,12 @@ module.exports = class WebhookCommand extends commando.Command {
|
||||
const content = args.text;
|
||||
try {
|
||||
await message.delete();
|
||||
const post = await request
|
||||
await request
|
||||
.post(config.webhook)
|
||||
.send({
|
||||
content: content
|
||||
});
|
||||
return post;
|
||||
return;
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(':x: Error! Message failed to send!');
|
||||
|
||||
Reference in New Issue
Block a user