What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-19 10:35:18
dm command discord.js
if (cmd === `!dm`) { let dUser = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]); if (!dUser) return message.channel.send("Can't find user!"); if (!message.member.hasPermission('ADMINISTRATOR')) ... Add solution -
Javascript 2022-03-12 14:00:06
discord.js nickname command
const Discord = require('discord.js') exports.run = async (client, message, args) => { if (!message.member.hasPermission('MANAGE_NICKNAMES')) return message.reply(`You cannot use this command as you do not have the \`MANAGE_NICKNAMES\` permission`... Add solution -
Javascript 2022-01-30 22:40:18
how to give a role to a new member in discord.js
let role = message.guild.roles.find(r => r.name === "Role Name"); // Let's pretend you mentioned the user you want to add a role to (!addrole @user Role Name): let member = message.mentions.members.first(); // or the person who made started... Add solution -
Javascript 2022-01-26 20:05:56
add role to channel discord.js
let role = message.guild.roles.find(r => r.name === "Role Name"); // Let's pretend you mentioned the user you want to add a role to (!addrole @user Role Name): let member = message.mentions.members.first(); // or the person who made started... Add solution -
Javascript 2021-11-10 19:12:16
swear word javascript + cooldown + delete mesagge discord.js
bot.on("message", async(message) => { if(message.member.hasPermission(['ADMINISTRATOR'])) return; let swearwords = ["arse","ass","asshole","bastard","bitch","bollocks","... Add solution -
Javascript 2021-11-07 14:45:18
discord.js v12 command ban
if (!message.member.hasPermission("BAN_MEMBERS")) return message.channel.send("Invalid Permissions") let User = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]) if (!User) return message.channe... Add solution