From c83eae931b0bb0f765f54a4431ca257298610119 Mon Sep 17 00:00:00 2001 From: Jamie <31554168+flaree@users.noreply.github.com> Date: Wed, 19 May 2021 10:58:50 +0100 Subject: [PATCH] [Streams] Add guild only decorator to streams commands (#5035) Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> --- redbot/cogs/streams/streams.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redbot/cogs/streams/streams.py b/redbot/cogs/streams/streams.py index f3f9028ca..ed5e53291 100644 --- a/redbot/cogs/streams/streams.py +++ b/redbot/cogs/streams/streams.py @@ -202,6 +202,7 @@ class Streams(commands.Cog): if self.ttv_bearer_cache["expires_at"] - datetime.now().timestamp() <= 60: await self.get_twitch_bearer_token() + @commands.guild_only() @commands.command() async def twitchstream(self, ctx: commands.Context, channel_name: str): """Check if a Twitch channel is live.""" @@ -215,6 +216,7 @@ class Streams(commands.Cog): ) await self.check_online(ctx, stream) + @commands.guild_only() @commands.command() @commands.cooldown(1, 30, commands.BucketType.guild) async def youtubestream(self, ctx: commands.Context, channel_id_or_name: str): @@ -233,6 +235,7 @@ class Streams(commands.Cog): ) await self.check_online(ctx, stream) + @commands.guild_only() @commands.command() async def picarto(self, ctx: commands.Context, channel_name: str): """Check if a Picarto channel is live."""