1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Adding a test command to test mini-data classes

This commit is contained in:
Phxntxm 2016-08-18 22:48:50 -05:00
parent 8f7a3e58cd
commit 2a20635536

View file

@ -18,7 +18,14 @@ class Owner:
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands.check(checks.is_owner)
async def testcommand(self, member: discord.Member):
role = [discord.Roles(id="183749087038930944"), discord.Object(id="183749087038930944")]
await self.bot.add_roles(member, *roles)
await self.bot.say("Just added the roles {} to {}".format(role, member.display_name))
@commands.command(pass_context=True)
@commands.check(checks.is_owner)
async def saferestart(self, ctx):