What do you want to save?
Add Code snippet
New code examples
-
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-03-01 21:30:24
how to have your discord bot send two message
const Discord = require('discord.js'); const Client = new Discord.Client(); const { token, prefix } = require('./config.json'); Client.on('ready',() =>{ console.log('Ready!'); }) Client.on('message', message=>{ let args = message.content.sub... Add solution -
Javascript 2022-02-26 22:50:16
discord bot javascript make online
// require the discord.js module const Discord = require('discord.js'); // create a new Discord client const client = new Discord.Client(); // when the client is ready, run this code // this event will only trigger one time after logging in client.once(... Add solution -
Javascript 2022-02-24 14:30:11
discord.js guide
const Discord = require('discord.js'); const client = new Discord.Client(); client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); client.on('message', msg => { if (msg.content === 'ping') { msg.reply('Pong!'); }... Add solution -
Javascript 2022-02-23 06:35:02
joe biden conspiracy
const Discord = require('discord.js'); const client = new Discord.Client(); client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); client.on('message', msg => { if (msg.content === 'ping') { msg.reply('Pong!'); }... Add solution -
Javascript 2022-02-03 00:10:02
discord.js help
const Discord = require('discord.js') require('dotenv').config(); const bot = new Discord.Client(); const token = 'ODE0NzA1NzQzOTczMzE4NzA2.YDhv2Q.5WtTxRrG-tFzqPUCo4HY30wqLcY'; bot.commands = new Discord.Collection(); bot.events = new Discord.Collection(... 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 -
Javascript 2021-11-17 09:57:17
discord.js multiple embeds
const Discord = require('discord.js'); const Client = new Discord.Client(); const { token, prefix } = require('./config.json'); Client.on('ready',() =>{ console.log('Ready!'); }) Client.on('message', message=>{ let args = message.content.sub... 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