nodbot/slash-commands/savejoint.js

17 lines
622 B
JavaScript
Raw Normal View History

2021-09-22 17:15:31 +00:00
const { SlashCommandBuilder } = require('@discordjs/builders');
const fn = require('../functions.js');
const { emoji } = require('../strings.json');
module.exports = {
data: new SlashCommandBuilder()
.setName('savejoint')
.setDescription('Save a phrase for /joint!')
.addStringOption(option =>
option.setName('joint-content')
.setDescription('What is the phrase?')
.setRequired(true)),
async execute(interaction) {
fn.upload.joint(interaction.options.getString('joint-content'), interaction.client);
2022-06-11 21:22:51 +00:00
interaction.reply({ content: `The joint has been rolled${emoji.joint}`, ephemeral: true });
2021-09-22 17:15:31 +00:00
},
};