What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-25 00:05:02
how to make a cooldown in discord.py
from discord.ext.commands import cooldown, BucketType @commands.cooldown(1, 3, commands.BucketType.user) @client.command() async def command_name(ctx): print('Eyy') @command_name.error async def command_name_error(ctx, error): if isinstance(error, ... 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 05:38:03
discord.py how to use permissions
@commands.guild_only() # Command cannot be used in private messages. @commands.is_owner() # Command can only be used by the bot owner. @commands.is_nsfw() # Command can only be used in NSFW channels @commands.has_role("name") # Check if memb... Add solution