mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +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;
|
const content = args.text;
|
||||||
try {
|
try {
|
||||||
await message.delete();
|
await message.delete();
|
||||||
const post = await request
|
await request
|
||||||
.post(config.webhook)
|
.post(config.webhook)
|
||||||
.send({
|
.send({
|
||||||
content: content
|
content: content
|
||||||
});
|
});
|
||||||
return post;
|
return;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
return message.say(':x: Error! Message failed to send!');
|
return message.say(':x: Error! Message failed to send!');
|
||||||
|
|||||||
Reference in New Issue
Block a user