bot.replies_cache not d.replies_cache
@@ -63,14 +63,14 @@ class Config(commands.Cog):
if replies.lower() in ("yes", "true", "on"):
await self.db.set_guild_attr(ctx.guild.id, "do_replies", True)
- self.d.replies_cache.add(ctx.guild.id)
+ self.bot.replies_cache.add(ctx.guild.id)
await self.bot.reply_embed(ctx, ctx.l.config.replies.set.format("on"))
elif replies.lower() in ("no", "false", "off"):
await self.db.set_guild_attr(ctx.guild.id, "do_replies", False)
try:
- self.d.replies_cache.remove(ctx.guild.id)
+ self.bot.replies_cache.remove(ctx.guild.id)
except KeyError:
pass
