Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -1161,7 +1161,8 @@ client.on('interactionCreate', async (interaction) => {
|
|
| 1161 |
|
| 1162 |
// Only defer ChatInputCommands to prevent conflict with Button/Menu deferUpdate()
|
| 1163 |
if (interaction.isChatInputCommand()) {
|
| 1164 |
-
|
|
|
|
| 1165 |
await interaction.deferReply().catch(() => { });
|
| 1166 |
}
|
| 1167 |
}
|
|
|
|
| 1161 |
|
| 1162 |
// Only defer ChatInputCommands to prevent conflict with Button/Menu deferUpdate()
|
| 1163 |
if (interaction.isChatInputCommand()) {
|
| 1164 |
+
const noDeferCmds = ['ping', 'friendly', 'lineup'];
|
| 1165 |
+
if (!noDeferCmds.includes(interaction.commandName)) {
|
| 1166 |
await interaction.deferReply().catch(() => { });
|
| 1167 |
}
|
| 1168 |
}
|