fix
This commit is contained in:
parent
b28b67f248
commit
65e41320f6
@ -170,7 +170,7 @@ const commands = [
|
|||||||
new SlashCommandBuilder().setName('get-connection-hash-sftp').setDescription('Get the SFTP connection hash'),
|
new SlashCommandBuilder().setName('get-connection-hash-sftp').setDescription('Get the SFTP connection hash'),
|
||||||
new SlashCommandBuilder().setName('list-players').setDescription('Get a list of online players'),
|
new SlashCommandBuilder().setName('list-players').setDescription('Get a list of online players'),
|
||||||
new SlashCommandBuilder().setName('my-website-url').setDescription('Get the server website URL'),
|
new SlashCommandBuilder().setName('my-website-url').setDescription('Get the server website URL'),
|
||||||
new SlashCommandBuilder().setName('bluemap-url ').setDescription('Get the server map URL'),
|
new SlashCommandBuilder().setName('bluemap-url').setDescription('Get the server map URL'),
|
||||||
new SlashCommandBuilder().setName('ban').setDescription('Ban a player by username').addStringOption(option => option.setName('username').setDescription('Player username').setRequired(true)),
|
new SlashCommandBuilder().setName('ban').setDescription('Ban a player by username').addStringOption(option => option.setName('username').setDescription('Player username').setRequired(true)),
|
||||||
new SlashCommandBuilder().setName('unban').setDescription('Unban a player by username').addStringOption(option => option.setName('username').setDescription('Player username').setRequired(true)),
|
new SlashCommandBuilder().setName('unban').setDescription('Unban a player by username').addStringOption(option => option.setName('username').setDescription('Player username').setRequired(true)),
|
||||||
new SlashCommandBuilder().setName('send-message').setDescription('Send a message to all players').addStringOption(option => option.setName('message').setDescription('Message to send').setRequired(true)),
|
new SlashCommandBuilder().setName('send-message').setDescription('Send a message to all players').addStringOption(option => option.setName('message').setDescription('Message to send').setRequired(true)),
|
||||||
@ -359,7 +359,7 @@ client.on('interactionCreate', async interaction => {
|
|||||||
handleResponse(websiteURL, interaction);
|
handleResponse(websiteURL, interaction);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'bluemap-url ':
|
case 'bluemap-url':
|
||||||
const mapURL = await handleApiCall(() => MyMC.getMapURL(), userId, interaction);
|
const mapURL = await handleApiCall(() => MyMC.getMapURL(), userId, interaction);
|
||||||
handleResponse(mapURL, interaction);
|
handleResponse(mapURL, interaction);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user