Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js");
- module.exports = {
- data: new SlashCommandBuilder()
- .setName("clear-console")
- .setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
- .setDescription("Clear the console"),
- async execute (interaction) {
- await console.clear();
- await interaction.reply({
- content: "Console has been cleared",
- ephemeral: true
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment