From 7d92fe6dbe1550735d44a5ee0c9ecdc66bc549e2 Mon Sep 17 00:00:00 2001 From: wlinator Date: Thu, 22 Aug 2024 23:18:48 +0200 Subject: [PATCH] fix weird code --- modules/economy/__init__.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/economy/__init__.py b/modules/economy/__init__.py index 6727395..9bc7237 100644 --- a/modules/economy/__init__.py +++ b/modules/economy/__init__.py @@ -58,14 +58,7 @@ class Economy(commands.Cog): ) @guild_only() async def give_command_prefixed(self, ctx, user: discord.User, *, amount: int): - try: - member = await ctx.guild.fetch_member(user.id) - except discord.HTTPException as e: - raise commands.BadArgument( - "I couldn't find that user in this server.", - ) from e - - return await give.cmd(ctx, member, amount) + return await give.cmd(ctx, user, amount) @bridge.bridge_command( name="slots",