Skip to content

Commit d1261fb

Browse files
committed
Fix help for oauth whitelist
1 parent ca2cc9d commit d1261fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cogs/utility.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ async def send_group_help(self, group):
136136
text=f'Type "{self.clean_prefix}{self.command_attrs["name"]} command" '
137137
'for more info on a command.'
138138
)
139+
139140
await self.get_destination().send(embed=embed)
140141

141142
async def send_error_message(self, msg): # pylint: disable=W0221
@@ -1257,11 +1258,10 @@ async def oauth(self, ctx):
12571258
"""Commands relating to Logviewer oauth2 login authentication."""
12581259
await ctx.send_help(ctx.command)
12591260

1260-
@oauth.group(name='whitelist', invoke_without_command=True)
1261+
@oauth.command(name='whitelist')
12611262
@checks.has_permissions(PermissionLevel.OWNER)
12621263
async def oauth_whitelist(self, ctx, target: Union[User, Role]):
1263-
"""
1264-
Whitelist or un-whitelist a user or role to have access to logs.
1264+
"""Whitelist or un-whitelist a user or role to have access to logs.
12651265
12661266
`target` may be a role ID, name, mention, user ID, name, or mention.
12671267
"""

0 commit comments

Comments
 (0)