Skip to content

Commit 978af6f

Browse files
Merge pull request #23 from python-discord/channel-tagging-improvement
enhance: make channel tag parameter a keyword-only arg
2 parents 8544223 + db6b4bf commit 978af6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tagging/tagging.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, bot: ModmailBot):
1616
@checks.has_permissions(PermissionLevel.SUPPORTER)
1717
@commands.command()
1818
@checks.thread_only()
19-
async def tag(self, ctx: commands.Context, tag: Optional[str]) -> None:
19+
async def tag(self, ctx: commands.Context, *, tag: Optional[str]) -> None:
2020
"""
2121
Append a tag at the beginning of the channel name.
2222
@@ -29,6 +29,9 @@ async def tag(self, ctx: commands.Context, tag: Optional[str]) -> None:
2929
else:
3030
name = clean_name
3131

32+
await ctx.reply(
33+
"Changes may take up to 10 minutes to take effect due to rate-limits."
34+
)
3235
await ctx.channel.edit(name=name)
3336
await ctx.message.add_reaction("\u2705")
3437

0 commit comments

Comments
 (0)