Skip to content

Commit

Permalink
[PersonalChannels] send help instead
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Sep 15, 2023
1 parent 89ccf3a commit 368c40e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions personalchannels/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ async def _pin(self, ctx: commands.Context, message: Optional[discord.Message] =
await self.check_text_channels(ctx, channel)
message = ref.resolved if (ref := ctx.message.reference) else message # type: ignore
if message is None:
await ctx.send("`Message` is a required argument.")
await ctx.send_help()
return
if message.channel is not channel:
await ctx.send(f"This is not your personal channel. (Your channel: {channel.mention})")
Expand All @@ -584,7 +584,7 @@ async def _unpin(self, ctx: commands.Context, message: Optional[discord.Message]
await self.check_text_channels(ctx, channel)
message = ref.resolved if (ref := ctx.message.reference) else message # type: ignore
if message is None:
await ctx.send("`Message` is a required argument.")
await ctx.send_help()
return
if message.channel is not channel:
await ctx.send(f"This is not your personal channel. (Your channel: {channel.mention})")
Expand Down

0 comments on commit 368c40e

Please sign in to comment.