What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-19 18:06:14
discord.py take all item from a playlist
@commands.command() @commands.guild_only() @commands.check(audio_playing) @commands.check(in_voice_channel) @commands.check(is_audio_requester) async def loop(self, ctx): """Activates the loop for a song. ... 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 -
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-16 08:59:14
slash commands dpy
import discord from discord.ext import commands from discord_slash import SlashCommand, SlashContext bot = commands.Bot(command_prefix="!", intents=discord.Intents.all()) slash = SlashCommand(bot) @slash.slash(name="test") async def ... 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 -
Python 2021-11-13 19:42:30
discord bot status python
# Setting `Playing ` status await bot.change_presence(activity=discord.Game(name="a game")) # Setting `Streaming ` status await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url)) # Setting `Listening... Add solution