What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-22 18:36:33
java script member count embed
Const { MessageEmbed } = require('discord.js') module.exports = { name: 'stats', description: 'Display info about this server.', execute(message) { const embed = new MessageEmbed() .setColor('RANDOM') .setTitle(`Title Display Her... 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 -
Other 2021-11-13 22:02:08
cannot read property startswith of undefined
Your issue is, that you mix discord.js with discord.io discord.js is object oriented where discord.io is not, so in discord.io your message is already a string! Example discord.io message event. bot.on('message', function(user, userID, channelID, messa... Add solution -
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