How would I add roles to a member in an on_ready eventin discord.py?

前端 未结 0 1052
情书的邮戳
情书的邮戳 2020-11-21 06:31

I\'ve been trying to add roles in an on_ready command.

@client.event
async def on_ready():
  with open(\'roles.json\',\'r\') as f:
      rolesjson = json.load         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题