mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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.command()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def casesfor(self, ctx: commands.Context, member: Union[discord.Member, int]):
|
async def casesfor(self, ctx: commands.Context, *, member: Union[discord.Member, int]):
|
||||||
"""
|
"""Display cases for the specified member."""
|
||||||
Displays the cases for the specified member
|
|
||||||
"""
|
|
||||||
try:
|
try:
|
||||||
if isinstance(member, int):
|
if isinstance(member, int):
|
||||||
cases = await modlog.get_cases_for_member(
|
cases = await modlog.get_cases_for_member(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user