Skip to content

Commit 5f3bd34

Browse files
committed
Handle no help message
1 parent cfa543c commit 5f3bd34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cogs/utility.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def format_cog_help(self, cog):
6767
return embeds
6868

6969
def process_help_msg(self, help_: str):
70-
return help_.format(prefix=self.clean_prefix)
70+
return help_.format(prefix=self.clean_prefix) if help_ else 'No help message.'
7171

7272
async def send_bot_help(self, mapping):
7373
embeds = []
@@ -124,7 +124,8 @@ async def send_group_help(self, group):
124124
for i, command in enumerate(
125125
await self.filter_commands(group.commands, sort=True, key=lambda c: c.name)
126126
):
127-
# Bug: fmt may run over the embed limit
127+
# BUG: fmt may run over the embed limit
128+
# TODO: paginate this
128129
if length == i + 1: # last
129130
branch = '└─'
130131
else:

0 commit comments

Comments
 (0)