make submit redirect to website #29

Merged
Quaternions merged 1 commits from submit-redirect into master 2025-09-21 23:06:36 +00:00

26
commands/submit.js Normal file
View 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
};