What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-24 11:55:02
make a discord message embed
//command handlers dont do this if you already have them exports.run = async (client, message, args) => { //define the embed with let, const, or var var EmbedMessage = new Discord.MessageEmbed() .setColor('red') .setImage('You can set a ima... 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 2021-11-18 03:53:19
discord.js bad word filter
// I DOUBT IF IT WORKS // // COMPLICATED SCRIPT BY ME // client.on('message', message => { const FilteredWords = ["darn", "fuck", "bitch", "pussy", " ass", "nigga", "fucker", &qu... 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 -
Javascript 2021-11-06 18:35:18
make welcome message and channel discord.js
// This is the needed event to use the welcome! bot.on('guildMemberAdd', async newMember => { // IMPORTANT NOTE: Make Sure To Use async and rename bot to client or whatever name you have for your bot events! const welcomeChannel = newMember.gui... Add solution -
TypeScript 2021-11-05 13:56:18
bot stats discord.js
// - COMPLICATED SCRIPT DONT DISLIKE IF YOU CANT UNDERSTAND // client.on('message', message => { if (message.content.toLowerCase().startsWith(prefix + 'stats')) { if (message.author.bot) return; const ToTalSeconds = (client.uptime... Add solution -
Javascript 2021-10-17 17:23:06
channel info discord.js
// COMPLICATED SCRIPT DONT DISLIKE IF YOU CANT UNDERSTAND // client.on('message', message => { if (message.content.toLowerCase() === prefix + 'channel') { if (message.author.bot) return; if (UtilCommandsDisable.has(message.guild.id... Add solution