Made sure that bot has admin to execute serverinfo

pull/8/head
sgoudham 4 years ago
parent 43204a9606
commit 4c6f984681

@ -9,7 +9,7 @@ from discord import Colour, Member
from discord import Embed from discord import Embed
from discord import __version__ as discord_version from discord import __version__ as discord_version
from discord.ext import commands 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 discord.ext.commands import command
from psutil import Process, virtual_memory from psutil import Process, virtual_memory
@ -118,6 +118,7 @@ class Info(commands.Cog):
await ctx.send(embed=embed) await ctx.send(embed=embed)
@command(name="serverinfo", aliases=["guildinfo"]) @command(name="serverinfo", aliases=["guildinfo"])
@bot_has_permissions(adminstrator=True)
@cooldown(1, 5, BucketType.user) @cooldown(1, 5, BucketType.user)
async def server_info(self, ctx): async def server_info(self, ctx):
"""Guild Information! (Owner/Roles/Emojis etc)""" """Guild Information! (Owner/Roles/Emojis etc)"""

Loading…
Cancel
Save