mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
types(GuildBanManager): remove can return null (#6748)
This commit is contained in:
@@ -161,7 +161,7 @@ class GuildBanManager extends CachedManager {
|
||||
* Unbans a user from the guild.
|
||||
* @param {UserResolvable} user The user to unban
|
||||
* @param {string} [reason] Reason for unbanning user
|
||||
* @returns {Promise<User>}
|
||||
* @returns {Promise<?User>}
|
||||
* @example
|
||||
* // Unban a user by id (or with a user/guild member object)
|
||||
* guild.bans.remove('84484653687267328')
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -2664,7 +2664,7 @@ export class GuildBanManager extends CachedManager<Snowflake, GuildBan, GuildBan
|
||||
public create(user: UserResolvable, options?: BanOptions): Promise<GuildMember | User | Snowflake>;
|
||||
public fetch(options: UserResolvable | FetchBanOptions): Promise<GuildBan>;
|
||||
public fetch(options?: FetchBansOptions): Promise<Collection<Snowflake, GuildBan>>;
|
||||
public remove(user: UserResolvable, reason?: string): Promise<User>;
|
||||
public remove(user: UserResolvable, reason?: string): Promise<User | null>;
|
||||
}
|
||||
|
||||
export class GuildInviteManager extends DataManager<string, Invite, InviteResolvable> {
|
||||
|
||||
Reference in New Issue
Block a user