Manages API methods for guild bans and stores their cache.
Extends
CachedManager<Snowflake, GuildBan, GuildBanResolvable>The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerBans a user from the guild.
Returns
Result object will be resolved as specifically as possible. If the GuildMember cannot be resolved, the User will instead be attempted to be resolved. If that also cannot be resolved, the user id will be the result.Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The user to ban |
options | BanOptions | Yes | Options for the ban |
Fetches ban(s) from Discord.
Name | Type | Optional | Description |
---|---|---|---|
options | UserResolvable | FetchBanOptions | No | Options for fetching guild ban(s) |
Unbans a user from the guild.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The user to unban |
reason | string | Yes | Reason for unbanning user |
Resolves a data entry to a data Object.
Returns
An instance from this ManagerName | Type | Optional | Description |
---|---|---|---|
idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
Name | Type | Optional | Description |
---|---|---|---|
idOrInstance | K | Holds | No | The id or instance of something in this Manager |