Brozy123 commited on
Commit
dfea435
·
verified ·
1 Parent(s): af97354

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -0
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