updated lang strings
This commit is contained in:
10
dist/queue.js
vendored
10
dist/queue.js
vendored
@@ -98,7 +98,7 @@ async function discordInit(client) {
|
||||
continue;
|
||||
}
|
||||
if (!channel || !(channel instanceof discord_js_1.TextChannel)) {
|
||||
console.error(lang_1.Lang.get('discord.error.noChannel'), {
|
||||
console.error(lang_1.Lang.get('error.discord.noChannel'), {
|
||||
channelId,
|
||||
teamsize: info.teamsize
|
||||
});
|
||||
@@ -120,7 +120,7 @@ var QueueCommands;
|
||||
function getInfo(interaction) {
|
||||
let info = QUEUE.get(interaction.channelId);
|
||||
if (!info)
|
||||
throw (0, util_1.emsg)(lang_1.Lang.get('discord.error.noQueue'));
|
||||
throw (0, util_1.emsg)('discord.noQueue');
|
||||
return info;
|
||||
}
|
||||
/**
|
||||
@@ -155,7 +155,7 @@ var QueueCommands;
|
||||
(0, util_1.memberIsModThrow)(interaction);
|
||||
let { channelId } = interaction, teamsize = interaction.options.getInteger('teamsize', true);
|
||||
if (QUEUE.has(channelId))
|
||||
throw (0, util_1.emsg)(lang_1.Lang.get('discord.error.noCreate', {
|
||||
throw (0, util_1.emsg)(lang_1.Lang.get('error.discord.noCreate', {
|
||||
teamsize: QUEUE.get(channelId)?.teamsize
|
||||
}));
|
||||
Queue.create(channelId, teamsize);
|
||||
@@ -207,7 +207,7 @@ var QueueCommands;
|
||||
async function join(interaction) {
|
||||
let { member, info, channel } = getAll(interaction);
|
||||
if (queueContains(interaction))
|
||||
throw (0, util_1.emsg)(lang_1.Lang.get('discord.error.inQueue'));
|
||||
throw (0, util_1.emsg)('discord.inQueue');
|
||||
info.players.push(member);
|
||||
QUEUE.set(interaction.channelId, info);
|
||||
await interaction.reply(lang_1.Lang.get('discord.join'));
|
||||
@@ -222,7 +222,7 @@ var QueueCommands;
|
||||
async function leave(interaction) {
|
||||
let { member, info } = getAll(interaction);
|
||||
if (!queueContains(interaction))
|
||||
throw (0, util_1.emsg)(lang_1.Lang.get('discord.error.notInQueue'));
|
||||
throw (0, util_1.emsg)('discord.notInQueue');
|
||||
info.players.splice(info.players.indexOf(member), 1);
|
||||
QUEUE.set(interaction.channelId, info);
|
||||
await interaction.reply(lang_1.Lang.get('discord.leave'));
|
||||
|
||||
Reference in New Issue
Block a user