What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-12 09:44:23
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 -
Javascript 2021-11-08 23:27:11
discordjs
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 -
Other 2021-10-21 13:47:13
how to mute someone discord.js
const Discord = require('discord.js'); const client = new Discord.Client(); const prefix = "!"; const token = ""; // Fill in your token client.on("message", msg => { msg.content.startsWith(prefix + "mute") { ... Add solution -
Javascript 2021-10-18 15:03:05
Discord.js ban command
// 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 -
Javascript 2021-10-16 21:59:06
discord.js empty field
const Discord = require('discord.js') const embed = new Discord.MessageEmbed() .setTitle('Example') .addFields( { name: 'foo', value: 'bar', inline: true }, { name: '\u200b', value: '\u200b', inline: true}, { name: 'foo2', value: 'bar... Add solution