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-02-01 01:45:30
how to unban in discord js
message.guild.members.unban(id) 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 2022-01-22 18:36:33
java script member count embed
Const { MessageEmbed } = require('discord.js') module.exports = { name: 'stats', description: 'Display info about this server.', execute(message) { const embed = new MessageEmbed() .setColor('RANDOM') .setTitle(`Title Display Her... Add solution -
Javascript 2022-01-22 03:31:43
reaction role by id discord.js
const Discord = require('discord.js'); const client = new Discord.Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION'] }); //partials arent really needed but I woudld reccomend using them because not every reaction is stored in the cache (it's new in v12... Add solution -
Java 2021-11-17 05:27:13
discord bot
// Import the discord.js module const Discord = require('discord.js'); // Create an instance of a Discord client const client = new Discord.Client(); /** * The ready event is vital, it means that only _after_ this will your bot start reacting to inform... Add solution