What do you want to save?
Add Code snippet
New code examples
-
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 -
Other 2021-10-12 01:36:06
discord embed description
// at the top of your file const Discord = require('discord.js'); // inside a command, event listener, etc. const exampleEmbed = new Discord.MessageEmbed() .setColor('#0099ff') .setTitle('Some title') .setURL('https://discord.js.org/') .setAuthor('So... Add solution -
Javascript 2021-10-03 18:43:02
simple kick command discord.js v12
//start by defining discord.js const Discord = require('discord.js'); //command handlers exports.run = async (client, message, args) => { if (!message.member.hasPermission('KICK_MEMBERS')) return message.reply('You cannot kick members') let mem... Add solution -
Javascript 2021-10-03 04:03:05
discord.js embed
// at the top of your file const Discord = require('discord.js'); // inside a command, event listener, etc. const exampleEmbed = new Discord.MessageEmbed() .setColor('#0099ff') .setTitle('Some title') .setURL('https://discord.js.org/') .setAuthor('So... Add solution