How would I go about linking commands in my discord.py bot? I’ve seen it done in Dankmemer embeds but I wasn’t sure if it’s possible to replicate it in discord.py or how to replicate it in any language.
I tried just putting the command as it would be typed by a user into the message but (as expected) it didn’t work
You can use the fetch function to achieve this.
Code:
The "how it works" part:
create a list variable, get the slash commands with the
await bot.tree.fetch_commands()
functioncreate an embed
add fields to the embed:
name = cmd[x].mention, value=f"└{cmd[x].description}"
where x is the index of your listitemsend the embed