Making attack command bot owner only

pull/8/head
sgoudham 4 years ago
parent ac079d0585
commit dd2100b7e3

@ -3,7 +3,7 @@ import random
from discord import Member, Colour, Embed from discord import Member, Colour, Embed
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import BucketType, cooldown, command, has_any_role, is_owner from discord.ext.commands import BucketType, cooldown, command, is_owner
from settings import colour_list from settings import colour_list
@ -14,7 +14,7 @@ class Fun(commands.Cog):
self.bot = bot self.bot = bot
@command(name="attack", aliases=['Attack'], hidden=True) @command(name="attack", aliases=['Attack'], hidden=True)
@has_any_role(664585078487252993, 715412394968350756) @is_owner()
async def attack(self, ctx, target: Member): async def attack(self, ctx, target: Member):
"""Allows Co-Owners to throw insults at people""" """Allows Co-Owners to throw insults at people"""

Loading…
Cancel
Save