2021年1月5日星期二

Make a Discord bot DM a specific person

I am making a piece of code to annoy my friend but I cannot seem to find a way to DM him specifically. What am I doing wrong here?

import random  from random import choice  @commands.command()      async def annoy(self,ctx):          friend_id=#id number 123243 etc          responses=["a","b","C"]          await ctx.send("He has been notified.")          await friend_id.send(random.choice(responses))  
https://stackoverflow.com/questions/65588644/make-a-discord-bot-dm-a-specific-person January 06, 2021 at 08:44AM

没有评论:

发表评论