Fix channel history typo

This commit is contained in:
Jeremy Zhang 2018-03-24 18:20:21 +00:00
parent 82d7b477aa
commit 18f25d0852

View File

@ -95,7 +95,7 @@ class Titan(discord.Client):
if isinstance(channel, discord.channel.TextChannel):
print("Processing channel: ID-{} Name-'{}' ServerID-{} Server-'{}'".format(channel.id, channel.name, channel.guild.id, channel.guild.name))
await self.database.delete_all_messages_from_channel(channel.id)
async for message in self.logs_from(channel, limit=50, reverse=True):
async for message in channel.history(limit=50, reverse=True):
await self.database.push_message(message)
except:
continue