Skip to main content


I recommend subclassing anything you can as with subclassing, you can customize more stuff that you need to. In any bot, I subclass mostly everything.

Subclassing 'discord.Bot'
import discord

class Bot(discord.Bot):
def success(self):
embed = discord.Embed(, description="✅ Successfully executed command action!")
return embed
def error(self):
embed = discord.Embed(, description="❌ This command failed!")
return embed

bot = Bot(command_prefix="!", intents=discord.Intents.all())

async def success(ctx):
await ctx.send(embed=bot.success())
# sends a success message

async error(ctx):
await ctx.send(embed=bot.error())
# sends an error message