make submit redirect to website #29
26
commands/submit.js
Normal file
26
commands/submit.js
Normal file
@@ -0,0 +1,26 @@
|
||||
const { SlashCommandBuilder } = require('@discordjs/builders');
|
||||
const { commands } = require("../config/config.js");
|
||||
|
||||
/**
|
||||
* @param {import('discord.js').ChatInputCommandInteraction} interaction
|
||||
*/
|
||||
async function execute(interaction) {
|
||||
await interaction.editReply("🚫 Your map was NOT submitted. The bot no longer supports submissions. Submit your map at https://maps.strafes.net/submit");
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('submit')
|
||||
.setDescription('Submit your map')
|
||||
.addStringOption(option =>
|
||||
option.setName("game")
|
||||
.setDescription("Select the maptest game")
|
||||
.setRequired(true)
|
||||
.addChoices(...commands))
|
||||
.addIntegerOption(option =>
|
||||
option.setName("asset_id")
|
||||
.setDescription("The asset ID of the model")
|
||||
.setRequired(true))
|
||||
,
|
||||
execute
|
||||
};
|
||||
Reference in New Issue
Block a user