Adding a test command to test mini-data classes
This commit is contained in:
parent
2a20635536
commit
74f5fe0ec0
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class Owner:
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.check(checks.is_owner)
|
@commands.check(checks.is_owner)
|
||||||
async def testcommand(self, member: discord.Member):
|
async def testcommand(self, member: discord.Member):
|
||||||
role = [discord.Roles(id="183749087038930944"), discord.Object(id="183749087038930944")]
|
role = [discord.Role(id="183749087038930944"), discord.Object(id="183749087038930944")]
|
||||||
await self.bot.add_roles(member, *roles)
|
await self.bot.add_roles(member, *roles)
|
||||||
await self.bot.say("Just added the roles {} to {}".format(role, member.display_name))
|
await self.bot.say("Just added the roles {} to {}".format(role, member.display_name))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue