2021-09-22 17:15:31 +00:00
|
|
|
const { SlashCommandBuilder } = require('@discordjs/builders');
|
|
|
|
const fn = require('../functions.js');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('closereq')
|
|
|
|
.setDescription('Close a request by ID, retrieved from /requests')
|
|
|
|
.addStringOption(option =>
|
|
|
|
option.setName('requestid')
|
|
|
|
.setDescription('The ID of the request you\'d like to close.')
|
|
|
|
.setRequired(true)),
|
|
|
|
async execute(interaction) {
|
|
|
|
const requestId = interaction.options.getString('requestid');
|
2022-06-11 02:47:07 +00:00
|
|
|
fn.closeRequest(requestId, interaction);
|
2021-09-22 17:15:31 +00:00
|
|
|
},
|
|
|
|
};
|