ModRoleStorage
Extends:
src/storage/..js~GuildStorage → ModRoleStorage
Stores roles that are moderators within a guild
Constructor Summary
Public Constructor | ||
public |
constructor(localStorage: LocalStorage, logger: Logger) |
Method Summary
Public Methods | ||
public |
Deletes a role from the storage |
|
public |
Finds all roles associated with a guild that optionally match a search string |
|
public |
Saves a role to the storage |
Public Constructors
public constructor(localStorage: LocalStorage, logger: Logger) source
Params:
Name | Type | Attribute | Description |
localStorage | LocalStorage | The LocalStorage instance to use |
|
logger | Logger |
|
The logger to use |
Public Methods
public delete(role: Role): boolean source
Deletes a role from the storage
Params:
Name | Type | Attribute | Description |
role | Role | The role to delete |