Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { SlashCommandBuilder, EmbedBuilder, PermissionFlagsBits, AttachmentBuilder, ChannelType } = require("discord.js");
- const DISABLED = require("../../Schemas.js/Panel/Systems/xp");
- const channelSchema = require("../../Schemas.js/Leveling/xpChannel");
- const roleSchema = require("../../Schemas.js/Leveling/xp-roles");
- const amountSchema = require("../../Schemas.js/Leveling/xp-message");
- module.exports = {
- data: new SlashCommandBuilder()
- .setName("xp")
- .setDescription("Modify the XP System")
- .addSubcommandGroup(group => group
- .setName("channel")
- .setDescription("Modify the XP Channel")
- .addSubcommand(command => command
- .setName("add")
- .setDescription("Add a XP Channel for the Leveling Message")
- .addChannelOption(option => option
- .setName("channel")
- .setDescription("The channel for the leveling message")
- .setRequired(true)
- .addChannelTypes(
- ChannelType.GuildAnnouncement,
- ChannelType.GuildText,
- ChannelType.GuildForum,
- ChannelType.PublicThread,
- ChannelType.PrivateThread
- )
- )
- )
- .addSubcommand(command => command
- .setName("remove")
- .setDescription("Remove an XP Channel")
- )
- )
- .addSubcommand(command => command
- .setName("amount")
- .setDescription("Modify the amount of the XP per message")
- .addIntegerOption(option => option
- .setName("amount")
- .setDescription("The amount of XP per message you want")
- .setRequired(true)
- .setMinValue(1)
- )
- )
- .addSubcommandGroup(group => group
- .setName("reset")
- .setDescription("Reset the XP of a member/guild")
- .addSubcommand(command => command
- .setName("server")
- .setDescription("Reset the servers xp")
- )
- .addSubcommand(command => command
- .setName("member")
- .setDescription("Reset a members XP")
- .addUserOption(option => option
- .setName("target")
- .setDescription("The target you want to reset the XP")
- .setRequired(true)
- )
- )
- )
- .addSubcommand(command => command
- .setName("role-add")
- .setDescription("Add a XP role")
- .addRoleOption(option => option
- .setName("role")
- .setDescription("The role")
- .setRequired(true)
- )
- .addIntegerOption(option => option
- .setName("level")
- .setDescription("The Level")
- .setRequired(true)
- )
- )
- .addSubcommand(command => command
- .setName("role-edit")
- .setDescription("edit a level reward")
- .addIntegerOption(option => option.setName("level").setDescription("The level you want to edit").setRequired(true).setMinValue(1).setMaxValue(100))
- .addRoleOption(option => option.setName("role").setDescription("The new role you want to add").setRequired(true))
- )
- .addSubcommandGroup(group => group
- .setName("role-remove")
- .setDescription("Remove a reward by level or role")
- .addSubcommand(command => command
- .setName("by-role")
- .setDescription("remove a level reward by the role")
- .addRoleOption(option => option.setName("role").setDescription("The role you want to remove").setRequired(true))
- )
- .addSubcommand(command => command
- .setName("by-level")
- .setDescription("remove a level reward by the level")
- .addIntegerOption(option => option.setName("level").setDescription("The level you want ro remove the reward").setRequired(true).setMinValue(1).setMaxValue(100))
- )
- ),
- async execute (interaction, client) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment