mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 22:15:29 +00:00
Removed comments
This commit is contained in:
1 parent
15f1a876e8
commit
dc3118de15
1 file changed
-6
@@ -154,9 +154,6 @@ client.on('interactionCreate', async (interaction) => {
|
|||||||
`(${interaction.guild.memberCount}) ${interaction.guild.name}> Command '${interaction}' took ${executionTime} ms to execute.`
|
`(${interaction.guild.memberCount}) ${interaction.guild.name}> Command '${interaction}' took ${executionTime} ms to execute.`
|
||||||
);
|
);
|
||||||
|
|
||||||
// todo: using interaction.editReply() might lead to "unknown interaction" error
|
|
||||||
// it might already have been replied to or deferred
|
|
||||||
// solution might be to use interaction.followUp() instead or send a message to the channel?
|
|
||||||
return await interaction.followUp({
|
return await interaction.followUp({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
@@ -179,9 +176,6 @@ client.on('interactionCreate', async (interaction) => {
|
|||||||
`(${interaction.guild.memberCount}) ${interaction.guild.name}> Command '${interaction}' failed to execute.`
|
`(${interaction.guild.memberCount}) ${interaction.guild.name}> Command '${interaction}' failed to execute.`
|
||||||
);
|
);
|
||||||
|
|
||||||
// todo: using interaction.editReply() might lead to "unknown interaction" error
|
|
||||||
// it might already have been replied to or deferred
|
|
||||||
// solution might be to use interaction.followUp() instead or send a message to the channel?
|
|
||||||
await interaction.followUp({
|
await interaction.followUp({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
|
|||||||
Reference in new issue
Block a user