fix bot crash on bot response with only text
This commit is contained in:
15 files changed
+20
-20
No files matched your search
+1
-1
@@ -57,7 +57,7 @@ module.exports = {
|
||||
} catch (err) {
|
||||
return interaction.send(`<@${client.user.id}> Does not have permissions to send to the channel.\nMake sure your admins give <@${client.user.id}> access to all channels required. `)
|
||||
}
|
||||
return interaction.send('Tweeted!');
|
||||
return interaction.send({ content: 'Tweeted!' });
|
||||
} else {
|
||||
return interaction.send({ content: 'Tweeted!', embeds: [tweetEmbed] });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user