[英]How can I get the ID of the member who just joined the server?
如何獲取剛加入服務器的會員ID? 比如,會員剛剛加入我的服務器,我需要獲取他的 ID。 我怎么能做到這一點?
member.id 不起作用,因為這給出了:
AttributeError: 'CachedSlotProperty' object 沒有屬性 'id'
您的錯誤不在member.id
中。 它在str((discord.Message).guild.id)
中。 你想用這個做什么? 如果您需要獲取成員公會的 ID,請使用member.guild.id
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.