Imported group from discord.ext.commands at the top

pull/8/head
sgoudham 4 years ago
parent 7c36aca03d
commit 0a419d0524

@ -4,9 +4,8 @@ from datetime import timedelta
from typing import Optional from typing import Optional
from discord import Member, Embed from discord import Member, Embed
from discord.ext import commands
from discord.ext.commands import command, guild_only, has_guild_permissions, bot_has_guild_permissions, Greedy, \ from discord.ext.commands import command, guild_only, has_guild_permissions, bot_has_guild_permissions, Greedy, \
has_permissions, bot_has_permissions, cooldown, BucketType, Cog has_permissions, bot_has_permissions, cooldown, BucketType, Cog, group
import db import db
from db import connection from db import connection
@ -67,7 +66,7 @@ class Moderation(Cog):
async def on_ready(self): async def on_ready(self):
print(f"{self.__class__.__name__} Cog has been loaded\n-----") print(f"{self.__class__.__name__} Cog has been loaded\n-----")
@commands.group(invoke_without_command=True, usage="`[argument...]`") @group(invoke_without_command=True, usage="`[argument...]`")
@has_permissions(manage_guild=True) @has_permissions(manage_guild=True)
@bot_has_permissions(administrator=True) @bot_has_permissions(administrator=True)
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)

Loading…
Cancel
Save