updated lang strings

This commit is contained in:
2022-02-13 19:35:16 -06:00
parent b1d01b414e
commit 343ed640ae
10 changed files with 43 additions and 15 deletions

7
dist/queue.js vendored
View File

@@ -154,13 +154,14 @@ var QueueCommands;
function queueCreate(interaction) {
(0, util_1.memberIsModThrow)(interaction);
let { channelId } = interaction, teamsize = interaction.options.getInteger('teamsize', true);
if (QUEUE.has(channelId))
let existing = QUEUE.get(channelId);
if (existing)
throw (0, util_1.emsg)(lang_1.Lang.get('error.discord.noCreate', {
teamsize: QUEUE.get(channelId)?.teamsize
teamsize: existing.teamsize.toString()
}));
Queue.create(channelId, teamsize);
interaction.reply(lang_1.Lang.get('discord.create', {
teamsize
teamsize: teamsize.toString()
}));
}
QueueCommands.queueCreate = queueCreate;