Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -860,7 +860,7 @@ client.on('interactionCreate', async (interaction) => {
|
|
| 860 |
}
|
| 861 |
|
| 862 |
if (interaction.isSelectMenu() && interaction.customId === 'formation_select') {
|
| 863 |
-
if (!
|
| 864 |
const guildId = interaction.guildId;
|
| 865 |
guildSelectedFormation.set(guildId, interaction.values[0]);
|
| 866 |
const map = new Map();
|
|
|
|
| 860 |
}
|
| 861 |
|
| 862 |
if (interaction.isSelectMenu() && interaction.customId === 'formation_select') {
|
| 863 |
+
if (!roleStorage.isWhitelisted(interaction.guildId, interaction.member)) return interaction.reply({ content: "❌ No Permission to change formations.", ephemeral: true });
|
| 864 |
const guildId = interaction.guildId;
|
| 865 |
guildSelectedFormation.set(guildId, interaction.values[0]);
|
| 866 |
const map = new Map();
|