Client#guildBanAdd
The following event, according to the documents, returns two parameters:
- Guild: The guild the spoken of ban occurred from.
- User: The user who was banned.
We can take this knowledge and use it in the purpose of DMing the banned user with the guild's name, and using the icon as well.
client.on('guildBanAdd', (guild, user) => {
user.send(`You were banned from ${guild.name}!`, {
files: [guild.iconURL()]
})
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…