Skip to content

Commit

Permalink
fix channel last msg check
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jan 18, 2024
1 parent bb477af commit 76137b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ async def on_ready():

# Backup channels
for channel in target_channels:
# Only intressted in text channels
# Only interested in text channels
if not isinstance(channel, nextcord.TextChannel):
continue

Expand All @@ -560,7 +560,7 @@ async def on_ready():
# Backup channels
last_msg_id = await get_last_message_id(channel)
new_last_msg_id = await backup_channel(channel, last_msg_id)
if last_msg_id is not None:
if new_last_msg_id is not None:
await set_last_message_id(channel, new_last_msg_id)

# Backup threads in channel
Expand Down

0 comments on commit 76137b9

Please sign in to comment.