Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -129,6 +129,7 @@ client.on('messageCreate', async (message) => {
|
|
| 129 |
|
| 130 |
if (commandName === 'lineup') {
|
| 131 |
if (!storage.isWhitelisted(message.guildId, message.member)) return message.reply("❌ No Permission");
|
|
|
|
| 132 |
await message.channel.send(createLineupView(message.guildId));
|
| 133 |
}
|
| 134 |
|
|
@@ -482,6 +483,7 @@ client.on('interactionCreate', async (interaction) => {
|
|
| 482 |
|
| 483 |
if (interaction.commandName === 'lineup') {
|
| 484 |
if (!storage.isWhitelisted(interaction.guildId, interaction.member)) return interaction.reply({ content: "❌ No Permission", ephemeral: true });
|
|
|
|
| 485 |
await interaction.reply(createLineupView(interaction.guildId));
|
| 486 |
}
|
| 487 |
|
|
|
|
| 129 |
|
| 130 |
if (commandName === 'lineup') {
|
| 131 |
if (!storage.isWhitelisted(message.guildId, message.member)) return message.reply("❌ No Permission");
|
| 132 |
+
guildLineups.set(message.guildId, new Map());
|
| 133 |
await message.channel.send(createLineupView(message.guildId));
|
| 134 |
}
|
| 135 |
|
|
|
|
| 483 |
|
| 484 |
if (interaction.commandName === 'lineup') {
|
| 485 |
if (!storage.isWhitelisted(interaction.guildId, interaction.member)) return interaction.reply({ content: "❌ No Permission", ephemeral: true });
|
| 486 |
+
guildLineups.set(interaction.guildId, new Map());
|
| 487 |
await interaction.reply(createLineupView(interaction.guildId));
|
| 488 |
}
|
| 489 |
|