nicrom

1.0.9 • Public • Published

NICROM

npm Discord Server

Nicrom is a powerful npm package which maker bot developemnt easier :)

⚙️ Installation

Does'nt Support v13

npm i nicrom@latest

Features

  • Easy to use.
  • Simple.
  • Slash Commands Support.
  • Supports Discord.js v14.

📚 Usage

const { SlashCommandBuilder } = require('discord.js');
 const nicrom = require('nicrom');

module.exports = { 
    data: new SlashCommandBuilder() 
    .setName('nicrom') 
    .setDescription('Ch9ll!') 
    .addUserOption(option => option.setName('member').setDescription('The member you want to spoof').setRequired(true)) 
    .addStringOption(option => option.setName('message').setDescription('The message you want the member to say').setRequired(true))
    .addChannelOption(option => option.setName('channel').setDescription('The Message should be sent in').setRequired(true)),
    async execute (interaction) {

    const { options } = interaction;
    const member = await interaction.guild.members.cache.get(options.getUser('member').id);
    const message = options.getString('message');
    const channel = options.getChannel('channel');

    if (message.includes('@everyone') || message.includes('@here')) return await interaction.reply({ content: `You can't Bypass Prems .`, ephemeral: true });
    
    nicrom({ member: member, message: message, channel: channel, interaction: interaction, intmsg: true}).catch(async err => {
        await interaction.editReply({ content: `There was an error Tromb: \`${err}\``, ephemeral: true });
    })

}
}

Support

Discord

Package Sidebar

Install

npm i nicrom

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

3.77 kB

Total Files

3

Last publish

Collaborators

  • stromx