From 4c6f9846811a590f0478295314c1a6e0b1857c8f Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 25 Jul 2020 04:02:01 +0100 Subject: [PATCH] Made sure that bot has admin to execute serverinfo --- cogs/info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/info.py b/cogs/info.py index c7e088c8..3ac945ec 100644 --- a/cogs/info.py +++ b/cogs/info.py @@ -9,7 +9,7 @@ from discord import Colour, Member from discord import Embed from discord import __version__ as discord_version from discord.ext import commands -from discord.ext.commands import BucketType, cooldown +from discord.ext.commands import BucketType, cooldown, bot_has_permissions from discord.ext.commands import command from psutil import Process, virtual_memory @@ -118,6 +118,7 @@ class Info(commands.Cog): await ctx.send(embed=embed) @command(name="serverinfo", aliases=["guildinfo"]) + @bot_has_permissions(adminstrator=True) @cooldown(1, 5, BucketType.user) async def server_info(self, ctx): """Guild Information! (Owner/Roles/Emojis etc)"""