aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2021-08-15 23:45:41 +0300
committerGravatar mbaruh <[email protected]>2021-08-15 23:45:41 +0300
commitbe2c547586e80924bf416785bc354bbc7c392cfd (patch)
tree4b5739141e13aa9a304d992307899ac9f8ba9b84
parentImproved codejam end confirmation (diff)
Docstring corrections
Co-authored-by: Bluenix <[email protected]>
-rw-r--r--bot/exts/events/code_jams/_channels.py2
-rw-r--r--bot/exts/events/code_jams/_cog.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/events/code_jams/_channels.py b/bot/exts/events/code_jams/_channels.py
index 8b199a3c2..34ff0ad41 100644
--- a/bot/exts/events/code_jams/_channels.py
+++ b/bot/exts/events/code_jams/_channels.py
@@ -107,7 +107,7 @@ async def _send_status_update(guild: discord.Guild, message: str) -> None:
async def _add_team_leader_roles(members: list[tuple[discord.Member, bool]], team_leaders: discord.Role) -> None:
- """Assign team leader role, the jammer role and their team role."""
+ """Assign the team leader role to the team leaders."""
for member, is_leader in members:
if is_leader:
await member.add_roles(team_leaders)
diff --git a/bot/exts/events/code_jams/_cog.py b/bot/exts/events/code_jams/_cog.py
index d0c206b5e..b2ea97c38 100644
--- a/bot/exts/events/code_jams/_cog.py
+++ b/bot/exts/events/code_jams/_cog.py
@@ -79,9 +79,9 @@ class CodeJams(commands.Cog):
@commands.has_any_role(Roles.admins)
async def end(self, ctx: commands.Context) -> None:
"""
- Deletes all code jam channels.
+ Delete all code jam channels.
- Displays a confirmation message with the categories and channels to be deleted. Pressing the added reaction
+ A confirmation message is displayed with the categories and channels to be deleted.. Pressing the added reaction
deletes those channels.
"""
def predicate_deletion_emoji_reaction(reaction: discord.Reaction, user: discord.User) -> bool:
@@ -196,7 +196,7 @@ class CodeJams(commands.Cog):
@codejam.command()
@commands.has_any_role(Roles.admins)
async def remove(self, ctx: commands.Context, member: Member) -> None:
- """Removes the participant from their team. Does not remove the participants or leader roles."""
+ """Remove the participant from their team. Does not remove the participants or leader roles."""
channel = self.team_channel(ctx.guild, member)
if not channel:
await ctx.send(":x: I can't find the team channel for this member.")