[英]How can I get the ID of the member who just joined the server?
How can I get the ID of the member who just joined the server?如何获取刚加入服务器的会员ID? Like, member just joined my server and I need to get his ID.
比如,会员刚刚加入我的服务器,我需要获取他的 ID。 How I can do this?
我怎么能做到这一点?
member.id doesn't work, as this gives: member.id 不起作用,因为这给出了:
AttributeError: 'CachedSlotProperty' object has no attribute 'id'
AttributeError: 'CachedSlotProperty' object 没有属性 'id'
Your error not in member.id
.您的错误不在
member.id
中。 It's in str((discord.Message).guild.id)
.它在
str((discord.Message).guild.id)
中。 What were you trying to do with this?你想用这个做什么? If you need to get ID of guild of member use
member.guild.id
.如果您需要获取成员公会的 ID,请使用
member.guild.id
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.