Adding a test command to test mini-data classes
This commit is contained in:
parent
8f7a3e58cd
commit
2a20635536
1 changed files with 8 additions and 1 deletions
|
@ -19,6 +19,13 @@ 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):
|
||||
|
|
Loading…
Reference in a new issue