What do you want to save?
Add Code snippet
New code examples
-
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-07 01:55:09
discord.js ticket system stackoverflow
const discord = require("discord.js"); module.exports.run = async (bot, message, args) => { // ID from the catogory channel tickets. const categoryId = "644626077704257546"; // Get username var userName = message.... Add solution -
Javascript 2021-09-14 21:49:02
discord.js ticket system
const discord = require("discord.js"); module.exports.run = async (bot, message, args) => { // ID from the catogory channel tickets. const categoryId = "644626077704257546"; // Get username var userName = message.... Add solution -
Javascript 2021-09-14 05:24:01
discord.js mute command
const Discord = require('discord.js') exports.run = async (client, message, args) => { if (!message.member.hasPermission('MUTE_MEMBERS')) return message.reply('You cannot use this command'); if (!message.guild.me.hasPermission('MANAGE_ROLES')) ret... Add solution -
Javascript 2021-09-09 22:20:03
discord.js mute script
const Discord = require('discord.js') exports.run = async (client, message, args) => { if (!message.member.hasPermission('MUTE_MEMBERS')) return message.reply('You cannot use this command'); if (!message.guild.me.hasPermission('MANAGE_ROLES')) ret... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5