toowake

clear.js

Oct 2nd, 2023 (edited)
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js");
  2.  
  3. module.exports = {
  4.     data: new SlashCommandBuilder()
  5.     .setName("clear-console")
  6.     .setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
  7.     .setDescription("Clear the console"),
  8.  
  9.     async execute (interaction) {
  10.         await console.clear();
  11.         await interaction.reply({
  12.             content: "Console has been cleared",
  13.             ephemeral: true
  14.         })
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment