mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Mod] Use consume-rest in [p]casesfor
This commit is contained in:
parent
139cc07bda
commit
cf18b601e2
@ -109,10 +109,8 @@ class ModLog(commands.Cog):
|
||||
|
||||
@commands.command()
|
||||
@commands.guild_only()
|
||||
async def casesfor(self, ctx: commands.Context, member: Union[discord.Member, int]):
|
||||
"""
|
||||
Displays the cases for the specified member
|
||||
"""
|
||||
async def casesfor(self, ctx: commands.Context, *, member: Union[discord.Member, int]):
|
||||
"""Display cases for the specified member."""
|
||||
try:
|
||||
if isinstance(member, int):
|
||||
cases = await modlog.get_cases_for_member(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user