From b27e0f2d213d11096b16cdf28de4b2ed70069680 Mon Sep 17 00:00:00 2001 From: Wyn Date: Thu, 8 Mar 2018 20:55:03 -0500 Subject: [PATCH] [V3 Audio] Rename `Game` to `Activity` (#1409) * Rename `Game` to `Activity` for audio Add on to pull #1397 * Update audio.py Whoops, don't need this here * Update audio.py Now fixed --- redbot/cogs/audio/audio.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index 3e3ec263a..da2607d24 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -96,9 +96,9 @@ class Audio: if event == 'TrackStartEvent' and status: if playing_servers > 1: - await self.bot.change_presence(game=discord.Game(name='music in {} servers'.format(playing_servers))) + await self.bot.change_presence(activity=discord.Activity(name='music in {} servers'.format(playing_servers), type=discord.ActivityType.playing)) else: - await self.bot.change_presence(game=discord.Game(name=get_single_title, type=2)) + await self.bot.change_presence(activity=discord.Activity(name=get_single_title, type=discord.ActivityType.listening)) if event == 'QueueEndEvent' and notify: c = player.fetch('channel') @@ -111,11 +111,11 @@ class Audio: if event == 'QueueEndEvent' and status: await asyncio.sleep(1) if playing_servers == 0: - await self.bot.change_presence(game=None) + await self.bot.change_presence(activity=None) if playing_servers == 1: - await self.bot.change_presence(game=discord.Game(name=get_single_title, type=2)) + await self.bot.change_presence(activity=discord.Activity(name=get_single_title, type=discord.ActivityType.listening)) if playing_servers > 1: - await self.bot.change_presence(game=discord.Game(name='music in {} servers'.format(playing_servers))) + await self.bot.change_presence(activity=discord.Activity(name='music in {} servers'.format(playing_servers), type=discord.ActivityType.playing)) @commands.group() @checks.is_owner()