What do you want to save?
Add Code snippet
New code examples
-
-
Python 2022-01-23 14:40:48
discord.py cog classes
from discord.ext import commands class Test_Cog(commands.Cog): def __init__(self, bot): self.bot = bot # defining bot as global var in class @commands.Cog.listener() # this is a decorator for events/listeners async def on_ready(self): ... Add solution -
Other 2022-01-23 03:56:10
embed generator discord
embed=discord.Embed(title="List of Available Commands :", color=0x0400ff) embed.set_author(name="Help") embed.add_field(name="Hunt", value="For Hunting", inline=False) embed.add_field(name="Fish", value=&q... Add solution -
Javascript 2022-01-23 01:20:23
discord js duplicate channel
var bot = new Discord.Client(); bot.on('ready', () => { bot.channels.get(voic).clone(undefined, true, false, 'Needed a clone') .then(clone => console.log(`Cloned ${channel.name} to make a channel called ${clone.name}`)) .catch(console.err... 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 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