mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Added guild.unban
This commit is contained in:
@@ -538,6 +538,20 @@ class Guild {
|
||||
return this.edit({ splash });
|
||||
}
|
||||
|
||||
/**
|
||||
* Unbans a member from the Guild
|
||||
* @param {UserResolvable} member the member to unban
|
||||
* @returns {Promise<User, Error>}
|
||||
* @example
|
||||
* // unban a member
|
||||
* guild.unban('123123123123')
|
||||
* .then(user => console.log(`Unbanned ${user.username} from ${guild.name}`))
|
||||
* .catch(reject);
|
||||
*/
|
||||
unban(member) {
|
||||
return this.client.rest.methods.unbanGuildMember(this, member);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the URL to this guild's icon (if it has one, otherwise it returns null)
|
||||
* @type {?String}
|
||||
|
||||
Reference in New Issue
Block a user