View Source Nostrum.Cache.ChannelGuildMapping.ETS (Nostrum v0.10.0)
Maps channels to guilds via :ets
.
Please use the function table/0
for retrieving a reference to the table
used by nostrum.
Summary
Functions
Returns a specification to start this module under a supervisor.
Create a mapping of the given channel to the given guild.
Remove any mapping associated with the given channel.
Retrieve the guild ID for the given channel ID, if present.
Set up the ETS table.
Start the supervisor.
Retrieve the table used by this module.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec create(Nostrum.Struct.Channel.id(), Nostrum.Struct.Guild.id()) :: true
Create a mapping of the given channel to the given guild.
@spec delete(Nostrum.Struct.Channel.id()) :: true
Remove any mapping associated with the given channel.
@spec get(Nostrum.Struct.Channel.id()) :: Nostrum.Struct.Guild.id() | nil
Retrieve the guild ID for the given channel ID, if present.
Set up the ETS table.
Start the supervisor.
@spec table() :: :ets.table()
Retrieve the table used by this module.