Skip to content

Commit

Permalink
[PersonalChannels] update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Sep 15, 2023
1 parent 368c40e commit 3bc58db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions personalchannels/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ async def _nsfw(self, ctx: commands.Context, nsfw: Optional[bool] = None):
async def _pin(self, ctx: commands.Context, message: Optional[discord.Message] = None):
"""
Pin a message in the personal channel.
You can also reply to the message with invoking the command.
"""
channel = await self.config.member(ctx.author).channel()
channel = ctx.guild.get_channel(channel)
Expand Down Expand Up @@ -578,6 +580,8 @@ async def _pin(self, ctx: commands.Context, message: Optional[discord.Message] =
async def _unpin(self, ctx: commands.Context, message: Optional[discord.Message] = None):
"""
Unpin a message from the personal channel.
You can also reply to the message with invoking the command.
"""
channel = await self.config.member(ctx.author).channel()
channel = ctx.guild.get_channel(channel)
Expand Down

0 comments on commit 3bc58db

Please sign in to comment.