This commit is contained in:
MCHost 2024-10-02 02:31:03 -04:00
parent b28b67f248
commit 65e41320f6

View File

@ -170,7 +170,7 @@ const commands = [
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('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('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)),
@ -359,7 +359,7 @@ client.on('interactionCreate', async interaction => {
handleResponse(websiteURL, interaction);
break;
case 'bluemap-url ':
case 'bluemap-url':
const mapURL = await handleApiCall(() => MyMC.getMapURL(), userId, interaction);
handleResponse(mapURL, interaction);
break;