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 -
Other 2022-03-19 10:35:18
dm command discord.js
if (cmd === `!dm`) { let dUser = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]); if (!dUser) return message.channel.send("Can't find user!"); if (!message.member.hasPermission('ADMINISTRATOR')) ... 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-28 05:30:02
args slice discord.js
const args = message.content.slice(prefix.length).trim().split(/ +/g); const command = args.shift().toLowerCase(); if (command === "RandomCommand") { let firstArgs = args[0]; //first argument let secondArgs = args[1]; //second argument i... Add solution -
Shell/Bash 2022-02-11 16:55:02
discord.py bot github
#Discord.py bot github import discord from discord.ext import commands import datetime from urllib import parse, request import re bot = commands.Bot(command_prefix='>', description="This is a Helper Bot") @bot.command() async def ping(ct... Add solution