What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-22 19:21:28
discord.js check every x minutes
var checkminutes = 10, checkthe_interval = checkminutes * 60 * 1000; //This checks every 10 minutes, change 10 to whatever minute you'd like setInterval(function() { message.channel.send("hello world"); //Or anything else }, checkthe_interval); Add solution -
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 -
Python 2022-01-22 18:36:24
discord.py send message every x minute
import discord from discord.ext import tasks # Change this to whatever seconds you want it to be # Or delete this line and change the x value into a number on the @tasks.loop param. x = 5 @tasks.loop(minutes=x) async def send(): """S... Add solution -
Javascript 2021-12-23 18:07:06
how to send emoji as ID discord.js
msg.channel.send("<:bat_food_full:786954379223367710>"); //msg.channel.send("<:emoji_name:ID>"); /*--- To get ID, in discord; type "\" then the name of your emoji For Example, type \:bat_food: and it will retur... Add solution -
Javascript 2021-11-21 19:46:12
discord js setinterval
var checkminutes = 10, checkthe_interval = checkminutes * 60 * 1000; //This checks every 10 minutes, change 10 to whatever minute you'd like setInterval(function() { message.channel.send("hello world"); //Or anything else }, checkthe_interval); Add solution -
Javascript 2021-11-20 08:18:24
create commands in disocrd.js
const { prefix, token } = require('./config.json'); // ... client.login(token); //........................................ client.on('message', message => { if (message.content === `${prefix}ping`) { message.channel.send('Pong.'); } else if (mes... Add solution -
TypeScript 2021-11-19 12:26:05
python discord action when someone reacts to message
@bot.event async def on_reaction_add(reaction, user): embed = reaction.embeds[0] emoji = reaction.emoji if user.bot: return if emoji == "emoji 1": fixed_channel = bot.get_channel(channel_id) await fixed_... 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