[Mod] fix exception caused by typo (#3559)

This commit is contained in:
Fixator10 2020-02-17 20:46:14 +04:00 committed by GitHub
parent d7b73eb50f
commit ae7773cfcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,5 +116,5 @@ class Mod(
await self.settings.guild_from_id(guild_id).ignored.clear() await self.settings.guild_from_id(guild_id).ignored.clear()
for channel_id, settings in all_channels.items(): for channel_id, settings in all_channels.items():
await self.bot._config.channel_from_id(channel_id).ignored.set(settings["ignored"]) await self.bot._config.channel_from_id(channel_id).ignored.set(settings["ignored"])
await self.settings.channel_fro_id(channel_id).clear() await self.settings.channel_from_id(channel_id).clear()
await ctx.send(_("Ignored channels and guilds restored.")) await ctx.send(_("Ignored channels and guilds restored."))