#A problem with new 'SlashCommandBuilder()'

1 messages · Page 1 of 1 (latest)

modern mango
#

Sorry if this is a stupid question but it seems to be removed or changed and I couldn't find any information about it... This is my code

import { SlashCommandBuilder, PermissionFlagsBits } from 'discord.js';

export default {
    data: new SlashCommandBuilder()
        .setName('warn')
        .setDescription('Warn a user.')
        .addUserOption(option =>
            option.setName('user').setDescription('The user to warn'))
        .addStringOption(option =>
            option.setName('reason').setDescription('Enter a reason (optional)'))
        .setDMPermission(false)
        .setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)

I just updated from v13 to v14