Pycord Discord Discordpy Get Total Slash Commandes et Total Commandes Regeterred dans votre bot

# i am using pycord
from discord.ext import commands
import discord

# creating the bot
bot = commands.bot("!", intents=discord.Intents.all())

# on ready event
@bot.event
async def on_ready()
	print("bot is ready")
	Print("Total commands: "+len(bot.commands))
	Print("Total slash commands: "+len(bot.application_commands))
    
# create a prefixed command
@bot.command()
async def test(ctx: commands.Context):
    await ctx.send("Success")

## create a slash command
@bot.slash_command()
async def slash(ctx: discord.ApplicationContext):
    await ctx.send(f"{ctx.author.mention} ran the command `{ctx.command}`")
Bittu5134