Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - const cmds = new discord.command.CommandGroup({
 - defaultPrefix: '>' // You can customize your default prefix here.
 - });
 - cmds.raw('bans', async (msg) => {
 - const guild = await msg.getGuild();
 - const bans = await guild.getBans();
 - await msg.reply(`There are ${bans.length} bans!`);
 - });
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment