Skip to content

Commit b4c6b0d

Browse files
authored
Update context.py
1 parent 5f6355d commit b4c6b0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/commands/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def edit(self):
139139

140140
@property
141141
def cog(self) -> Optional[Cog]:
142-
"""Optional[:class:`.Cog`]: Returns the cog associated with this context's command. None if it does not exist."""
142+
"""Optional[:class:`.Cog`]: Returns the cog associated with this context's command. ``None`` if it does not exist."""
143143
if self.command is None:
144144
return None
145145

@@ -178,8 +178,8 @@ def __init__(self, interaction: Interaction, *, command: ApplicationCommand, foc
178178

179179
@property
180180
def cog(self) -> Optional[Cog]:
181-
"""Optional[:class:`.Cog`]: Returns the cog associated with this context's command. None if it does not exist."""
181+
"""Optional[:class:`.Cog`]: Returns the cog associated with this context's command. ``None`` if it does not exist."""
182182
if self.command is None:
183183
return None
184184

185-
return self.command.cog
185+
return self.command.cog

0 commit comments

Comments
 (0)