From 878d10a1e24f7c7419ce55e70bd6d12835ffc972 Mon Sep 17 00:00:00 2001 From: palmtree5 <3577255+palmtree5@users.noreply.github.com> Date: Thu, 7 Dec 2017 06:17:47 -0900 Subject: [PATCH] [V3 Core] allow set game to unset the game (#1146) --- redbot/core/core_commands.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 9738a049c..97e60b1a4 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -313,10 +313,13 @@ class Core: @_set.command(name="game") @checks.is_owner() @commands.guild_only() - async def _game(self, ctx, *, game: str): + async def _game(self, ctx, *, game: str=None): """Sets Red's playing status""" status = ctx.me.status - game = discord.Game(name=game) + if game: + game = discord.Game(name=game) + else: + game = None await ctx.bot.change_presence(status=status, game=game) await ctx.send(_("Game set."))