From 228522017334790a72e8bb474963cd930c5450da Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 30 Jun 2020 04:14:47 +0100 Subject: [PATCH] Getting rid of @commands. --- cogs/GetInfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/GetInfo.py b/cogs/GetInfo.py index 04a855b4..e4a1b6ab 100644 --- a/cogs/GetInfo.py +++ b/cogs/GetInfo.py @@ -5,7 +5,7 @@ from typing import Optional from discord import Embed, Member, Colour from discord.ext import commands -from discord.ext.commands import BucketType, cooldown +from discord.ext.commands import BucketType, cooldown, command import settings @@ -15,7 +15,7 @@ class GetInfo(commands.Cog): self.bot = bot # ~userinfo to allow the users to see information about them relating to the guild - @commands.command(name="userinfo", aliases=["ui"]) + @command(name="userinfo", aliases=["ui"]) @cooldown(1, 1, BucketType.user) async def user_info(self, ctx, target: Optional[Member]): # If a target has been specified, set them as the user @@ -82,7 +82,7 @@ class GetInfo(commands.Cog): # Send the embed to the channel that the command was triggered in await ctx.send(embed=embed) - @commands.command(name="serverinfo", aliases=["guildinfo"]) + @command(name="serverinfo", aliases=["guildinfo"]) @cooldown(1, 1, BucketType.user) async def server_info(self, ctx):