Brozy123 commited on
Commit
68d686c
·
verified ·
1 Parent(s): 2feb71f

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -1
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
- if (interaction.commandName !== 'ping') {
 
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
  }