我的加入和离开消息无法在不和谐的bot上运行

时间:2020-10-28 15:10:23

标签: python python-3.x discord discord.py-rewrite

我没有收到代码错误,消息只会发送到我需要的地方。或者我应该说,根本不会发送。我正在使用Python重写。或python 3.9

from discord.ext import commands
import random

client = commands.Bot(command_prefix='.')

@client.event
async def on_member_join(member):
   await client.get_channel(763054294147924028).send(f"{member.name} has joined")

@client.event
async def on_member_remove(member):
   await client.get_channel(763054294147924028).send(f"{member.name} has left")```

0 个答案:

没有答案