updated lang strings
This commit is contained in:
7
dist/queue.js
vendored
7
dist/queue.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user