Skip to content

Commit

Permalink
Merge pull request #52 from SCP-JP/develop
Browse files Browse the repository at this point in the history
fix error message
  • Loading branch information
ukwhatn authored Jun 22, 2024
2 parents 3955e86 + 278638d commit dd5e90a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions discord/cogs/Reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,14 @@ async def remind_task(self):
except discord.Forbidden:
try:
msg = await channel.send("\n".join([
f"### 【リマインド】",
f"### 【リマインド:DM送信権限なし】",
f"作成者: {user.mention}",
f"対象者: {mention}",
f" {target.note if target.note else ''}"
]), view=view)
except discord.Forbidden:
await NOTIFY_TO_OWNER(self.bot, f"Forbidden: DM to {user.name}")
await NOTIFY_TO_OWNER(self.bot,
f"Forbidden: Send a msg in {channel.mention}")
continue

# target_toがNoneでないなら作成したチャンネルにリマインド
Expand Down

0 comments on commit dd5e90a

Please sign in to comment.