#help
1 messages · Page 1 of 1 (latest)
Because that's what you asked it to do 
You are sending the embed inside the loop
Also, why use aiter when bot.cogs is a simple list ?
Just use a normal for loop
How
do i fix
then
lmaoo
@glad birch
need suggestions
Basic python
async for cog in self.context.bot.cogs:
Keep appending to a string inside a loop, and send the embed after the loop
for cog in self.context.bot.cogs:
No need for async
async for cog in self.context.bot.cogs:
continue
embed = discord.Embed(description=f"\n\n{', '.join([cmd.name.replace('_', '') async for cmd in cog if 'help' not in cmd.name])}\n\n")
await self.context.send(embed=embed)
Something like this?

^
I already removed it
class help(commands.HelpCommand):
async def send_bot_help(self, mapping):
for cog in self.context.bot.cogs:
if cog.qualified_name in ["Jishaku"]:
continue
embed = discord.Embed(color=co, description=f"\n\n{', '.join([cmd.name.replace('_', '') for cmd in cog if 'help' not in cmd.name])}\n\n")
await self.context.send(embed=embed)
This will still send multiple embeds for each cog
You want to do smth like this
a = ""
for cog in bot.cogs:
a += "..."
embed = ...
await ctx.send(...)
I'm using a subclassed
help menu
Notice the embed is created outside the for loop
Yea so? I just gave an example of how you have to solve your issue
for cog in self.context.bot.cogs:
if cog.qualified_name in ["Jishaku"]:
continue
embed = discord.Embed(color=co, description=f"\n\n{', '.join([cmd.name.replace('_', '') for cmd in cog if 'help' not in cmd.name])}\n\n")
await self.context.send(embed=embed)
Nothing
is working
@glad birch
did you even read the example i sent?
yes
then implement it here
I did
did you 
where is this part ```py
a = ""
for cog in bot.cogs:
a += "..."
for cog in self.context.bot.cogs
is there
I Just don't understand what
a = ""
a += ""
is for
@glad birch
class help(commands.HelpCommand):
async def send_bot_help(self, mapping):
description = ''
for cog in utils.aiter(self.context.bot.cogs):
cog = self.context.bot.get_cog(cog)
if cog.qualified_name in ["Jishaku"]:
continue
if cog.get_commands():
description+=f"\n\n{', '.join([cmd.name.replace('_', '') for cmd in utils.aiter(cog.get_commands()) if 'help' not in cmd.name])}\n\n")
embed = discord.Embed(description=description)
await self.context.send(embed=embed)
Looks correct but we don't advocate spoon feeding
Official Beginner's Guide: https://wiki.python.org/moin/BeginnersGuide
Official Tutorial: https://docs.python.org/3/tutorial/
Shortcuts:
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
https://wiki.python.org/moin/BeginnersGuide/Programmers
Learn Python:
https://automatetheboringstuff.com/ (for complete beginners to programming)
https://learnxinyminutes.com/docs/python3/ (for people who know programming already)
https://docs.python.org/3/tutorial/ (official tutorial)
http://python.swaroopch.com/ (useful book)
http://www.codeabbey.com/ (exercises for beginners)
?tag python
its is very difficult to help you if you don't understand python first.
As it stands, you do not or cannot show that you understand the basic fundamentals of Python. Please continue to learn Python first, as pycord is a Python framework and as such requires that you have a confident grasp on these fundamentals . For now, pause your current project and when you have learned enough Python you can then pick it back up and continue where you left off (if at all possible).** You cannot drive a truck if you do not know how to drive at all.**
cool free resources are
w3school
freecodecamp.org
there are also a lot of python programming tutorials out there a youtube search will give a lot awesome content. If you need help with python there is a python server for that where they will be more that happy to help you with these thing, you can also ask for python help in #881309540639997952.
python server: https://discord.gg/python