What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-11 16:40:03
DiscordUtils
import discord from discord.ext import commands import DiscordUtils intents = discord.intents.default() intents.members = True bot = commands.AutoShardedBot(command_prefix=">", intents=intents) tracker = DiscordUtils.InviteTracker(bot) @bot... 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-10-20 18:47:10
youtube subscriber count discord bot activity
import discord from discord.ext import commands from discord.ext.commands import Bot from discord.utils import get import urllib.request import json import asyncio intents = discord.Intents.default() intents.members = True bot = commands.Bot(intents=int... Add solution -
Python 2021-09-11 13:14:02
discord.py add role on member join
intents = discord.Intents.default() intents.members = True client = commands.Bot(command_prefix=',', intents=intents) @client.event async def on_member_join(member): role = get(member.guild.roles, id=role_id) await member.add_roles(role) Add solution