'shorted discord embed description python

Im coding a discord bot in python and I have a help command, is there anyway to display the description in shorter terms? maybe split up the lines? right now it is long and hard to work with. Adding anything to the description is annoying.

@client.command()
async def help(ctx):
    em = discord.Embed(description='`prefix:` -\n***-***`info [ign] -` shows minecraft info\n***-***`status [ign] -` shows a players online status\n***-***`bw [ign] -` shows bedwars stats\n***-***`av [user] -` Gets users avatar\n***-***`shoot [user] -` bang bang\n***-***`hug [user] -` hugs :3\n***-***`kiss [user] -` mwah\n***-***`slap [user] - ` slap the shit out of someone\n***-***`help -` displays this message', color=0x8565c4)
    em.set_author(name=f'Help')
    await ctx.send(embed=em)


Solution 1:[1]

So you can it look like this (you can create this with a loop) First you need to get all commands

bot_commands = bot.all_commands

Then create a loop, which creates the description.

description = ""
command_description = ["description_1",
                       "description_2"]        # write description here
for i in range(len(bot_commands)):
    description += f"**{bot_commands[i]}**\n{command_description[i]}"

I would recommend you to use a SQL database to select the description. You can easily create a database with sqlite3.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 taktischer