From e4907d6e06f5ac9d94d7dcfe13dc7bb2c33cd65a Mon Sep 17 00:00:00 2001 From: Harbys Date: Wed, 25 Nov 2020 17:18:05 +0100 Subject: fixing required arguments --- bot/exts/moderation/stream.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py index 2ce248f03..7678c3184 100644 --- a/bot/exts/moderation/stream.py +++ b/bot/exts/moderation/stream.py @@ -8,7 +8,6 @@ from bot.bot import Bot from bot.constants import Guild, Roles, STAFF_ROLES, TIME_FORMATS # Constant error messages -NO_USER_SPECIFIED = "Please specify a user" TIME_FORMAT_NOT_VALID = "Please specify a valid time format ex. 10h or 1day" TIME_LESS_EQ_0 = "Duration can not be a 0 or lower" USER_ALREADY_ALLOWED_TO_STREAM = "This user can already stream" @@ -52,7 +51,7 @@ class Stream(commands.Cog): async def stream( self, ctx: commands.Context, - user: discord.Member = None, + user: discord.Member, duration: int = 1, time_format: str = "h", *_ @@ -65,12 +64,6 @@ class Stream(commands.Cog): time_format - str defining what time unit you want to use, must be any of FORMATS - defaults to h Command give user permission to stream and takes it away after provided duration """ - # Check for required user argument - # if not provided send NO_USER_SPECIFIED message - if not user: - await ctx.send(NO_USER_SPECIFIED) - return - # Time can't be negative lol if duration <= 0: await ctx.send(TIME_LESS_EQ_0) -- cgit v1.2.3