import AllowedChannelStorage from 'discord-graf/src/storage/allowed-channels.js'
AllowedChannelStorage
Extends:
src/storage/..js~GuildStorage → AllowedChannelStorage
Stores channels that the bot is allowed to operate in within a guild
Constructor Summary
Public Constructor | ||
public |
constructor(localStorage: LocalStorage, logger: Logger) |
Method Summary
Public Methods | ||
public |
Deletes a channel from the storage |
|
public |
Finds all channels associated with a guild that optionally match a search string |
|
public |
Saves a channel 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(channel: Channel): boolean source
Deletes a channel from the storage
Params:
Name | Type | Attribute | Description |
channel | Channel | The channel to delete |