Skip to content

Commit

Permalink
types(GuildBanManager): remove can return null (#6748)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Oct 3, 2021
1 parent 42acc6e commit c3f4de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/managers/GuildBanManager.js
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -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> {
Expand Down

0 comments on commit c3f4de4

Please sign in to comment.