From e610c3255976e64b3d5f43dda4e1e2ee8c629304 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Sat, 1 Sep 2018 18:06:28 -0700 Subject: [PATCH] [V3 Otherbot] Fix pingrole clearing --- otherbot/otherbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otherbot/otherbot.py b/otherbot/otherbot.py index 1ebb037..1dd5b74 100644 --- a/otherbot/otherbot.py +++ b/otherbot/otherbot.py @@ -28,7 +28,7 @@ class Otherbot: async def pingrole(self, ctx, role_name: discord.Role = None): """Sets the role to use for pinging. Leave blank to reset it.""" if not role_name: - await self.config.guild(ctx.guild).ping() + await self.config.guild(ctx.guild).ping.set(None) return await ctx.send("Ping role cleared.") await self.config.guild(ctx.guild).ping.set(role_name.id) pingrole_id = await self.config.guild(ctx.guild).ping()