Cache¶
The following section documents everything related to cache.
Abstract Base Classes¶
Cache¶
- def bulk_store_channel_voice_states
- def bulk_store_server_members
- def bulk_store_users
- def delete_channel
- def delete_channel_voice_state
- def delete_emoji
- def delete_message
- def delete_messages_of
- def delete_private_channel_by_user
- def delete_read_state
- def delete_server
- def delete_server_emojis_of
- def delete_server_member
- def delete_server_members_of
- def delete_user
- def get_all_channel_voice_states
- def get_all_channels
- def get_all_emojis
- def get_all_messages_of
- def get_all_private_channels_by_users
- def get_all_read_states
- def get_all_server_members_of
- def get_all_servers
- def get_all_users
- def get_channel
- def get_channel_voice_states_mapping
- def get_channels_mapping
- def get_emoji
- def get_emojis_mapping
- def get_message
- def get_messages_mapping_of
- def get_private_channel_by_user
- def get_private_channels_by_users_mapping
- def get_private_channels_mapping
- def get_read_state
- def get_read_states_mapping
- def get_server
- def get_server_emojis_mapping
- def get_server_emojis_mapping_of
- def get_server_member
- def get_server_members_mapping_of
- def get_servers_mapping
- def get_servers_member_mapping
- def get_user
- def get_users_mapping
- def overwrite_server_members
- def store_channel
- def store_channel_voice_state
- def store_emoji
- def store_message
- def store_private_channel_by_user
- def store_read_state
- def store_server
- def store_server_member
- def store_user
- class stoat.Cache[source]¶
An ABC that represents cache.
Note
This class might not be what you’re looking for. Head over to
EmptyCacheandMapCachefor implementations.- abstractmethod get_channel(channel_id, ctx, /)[source]¶
Optional[
Channel]: Retrieves a channel using ID.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_all_channels(ctx, /)[source]¶
Sequence[
Channel]: Retrieves all available channels as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_channels_mapping(ctx, /)[source]¶
Mapping[
str,Channel]: Retrieves all available channels as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod store_channel(channel, ctx, /)[source]¶
Stores a channel.
- Parameters:
channel (
Channel) – The channel to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_channel(channel_id, ctx, /)[source]¶
Deletes a channel.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod get_private_channels_mapping(ctx, /)[source]¶
Mapping[
str, Union[DMChannel,GroupChannel]]: Retrieve all private channels as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_message(channel_id, message_id, ctx, /)[source]¶
Optional[
Message]: Retrieves a message in channel using channel and message IDs.- Parameters:
channel_id (
str) – The channel’s ID.message_id (
str) – The message’s ID.ctx (
BaseCacheContext) – The context.
- get_all_messages_of(channel_id, ctx, /)[source]¶
Optional[Sequence[
Message]]: Retrieves all messages from a channel.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod get_messages_mapping_of(channel_id, ctx, /)[source]¶
Optional[Mapping[
str,Message]]: Retrieves all messages from a channel as mapping.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod store_message(message, ctx, /)[source]¶
Stores a message.
- Parameters:
message (
Message) – The message to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_message(channel_id, message_id, ctx, /)[source]¶
Deletes a message from channel.
- Parameters:
channel_id (
str) – The channel’s ID.message_id (
str) – The message’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_messages_of(channel_id, ctx, /)[source]¶
Deletes all messages from a channel.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod get_read_state(channel_id, ctx, /)[source]¶
Optional[
ReadState]: Retrieves a read state using channel ID.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_all_read_states(ctx, /)[source]¶
Sequence[
ReadState]: Retrieves all available read states as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_read_states_mapping(ctx, /)[source]¶
Mapping[
str,ReadState]: Retrieves all available read states as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod store_read_state(read_state, ctx, /)[source]¶
Stores a channel.
- Parameters:
channel (
Channel) – The channel to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_read_state(channel_id, ctx, /)[source]¶
Deletes a read state.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod get_emoji(emoji_id, ctx, /)[source]¶
Optional[
Emoji]: Retrieves an emoji using ID.- Parameters:
emoji_id (
str) – The emoji’s ID.ctx (
BaseCacheContext) – The context.
- get_all_emojis(ctx, /)[source]¶
Sequence[
Emoji]: Retrieves all available emojis as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_emojis_mapping(ctx, /)[source]¶
Mapping[
str,Emoji]: Retrieves all available emojis as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_server_emojis_mapping()[source]¶
Mapping[
str, Mapping[str,ServerEmoji]]: Retrieves all available server emojis as mapping of server ID to mapping of emoji IDs.
- abstractmethod get_server_emojis_mapping_of(server_id, ctx, /)[source]¶
Optional[Mapping[
str,ServerEmoji]]: Retrieves all emojis from a server as mapping.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_server_emojis_of(server_id, ctx, /)[source]¶
Deletes all emojis from a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod store_emoji(emoji, ctx, /)[source]¶
Stores an emoji.
- Parameters:
emoji (
Emoji) – The emoji to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_emoji(emoji_id, server_id, ctx, /)[source]¶
Deletes an emoji from server.
- Parameters:
emoji_id (
str) – The emoji’s ID.server_id (Optional[
str]) – The server’s ID.Noneif server ID is unavailable.ctx (
BaseCacheContext) – The context.
- abstractmethod get_server(server_id, ctx, /)[source]¶
Optional[
Server]: Retrieves a server using ID.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- get_all_servers(ctx, /)[source]¶
Sequence[
Server]: Retrieves all available servers as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_servers_mapping(ctx, /)[source]¶
Mapping[
str,Server]: Retrieves all available servers as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod store_server(server, ctx, /)[source]¶
Stores a server.
- Parameters:
server (
Server) – The server to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_server(server_id, ctx, /)[source]¶
Deletes a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- Returns:
The server removed from the cache, if any.
- Return type:
Optional[
Server]
- abstractmethod get_server_member(server_id, user_id, ctx, /)[source]¶
Optional[
Member]: Retrieves a member in server using server and user IDs.- Parameters:
server_id (
str) – The server’s ID.user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_all_server_members_of(server_id, ctx, /)[source]¶
Optional[Sequence[
Member]]: Retrieves all members from a server.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod get_server_members_mapping_of(server_id, ctx, /)[source]¶
Optional[Mapping[
str,Member]]: Retrieves all members from a server as mapping.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod bulk_store_server_members(server_id, members, ctx, /)[source]¶
Stores server members in bulk.
- Parameters:
server_id (
str) – The server’s ID to store members in.ctx (
BaseCacheContext) – The context.
- abstractmethod overwrite_server_members(server_id, members, ctx, /)[source]¶
Overwrites members of a server.
- Parameters:
server_id (
str) – The server’s ID to overwrite members in.ctx (
BaseCacheContext) – The context.
- abstractmethod store_server_member(member, ctx, /)[source]¶
Stores a member.
- Parameters:
member (
Member) – The member to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_server_member(server_id, user_id, ctx, /)[source]¶
Deletes a member from server.
- Parameters:
channel_id (
str) – The channel’s ID.member_id (
str) – The member user’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_server_members_of(server_id, ctx, /)[source]¶
Deletes all members from a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- abstractmethod get_servers_member_mapping(ctx, /)[source]¶
Mapping[
str, Mapping[str,Member]]: Retrieves all available server members as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_user(user_id, ctx, /)[source]¶
Optional[
User]: Retrieves an user using ID.- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_all_users(ctx, /)[source]¶
Sequence[
User]: Retrieves all available users as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_users_mapping(ctx, /)[source]¶
Mapping[
str,User]: Retrieves all available users as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod store_user(user, ctx, /)[source]¶
Stores an user.
- Parameters:
user (
User) – The user to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_user(user_id, ctx, /)[source]¶
Removes an user from cache.
- Parameters:
user_id (
str) – The ID of the user to remove from cache.ctx (
BaseCacheContext) – The context.
- Returns:
The removed user.
- Return type:
Optional[
User]
- abstractmethod bulk_store_users(users, ctx, /)[source]¶
Stores users in bulk.
- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_private_channel_by_user(user_id, ctx, /)[source]¶
Optional[
str]: Retrieves a private channel ID using user ID.- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_all_private_channels_by_users(ctx, /)[source]¶
Sequence[
str]: Retrieves all available DM channel IDs as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_private_channels_by_users_mapping(ctx, /)[source]¶
Mapping[
str,str]: Retrieves all available DM channel IDs as mapping of user IDs.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod store_private_channel_by_user(channel, ctx, /)[source]¶
Stores a DM channel.
- Parameters:
channel (
DMChannel) – The channel to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_private_channel_by_user(user_id, ctx, /)[source]¶
Deletes a DM channel by user ID.
- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_all_channel_voice_states(ctx, /)[source]¶
Sequence[
ChannelVoiceStateContainer]: Retrieves all available channel voice state containers as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod get_channel_voice_states_mapping(ctx, /)[source]¶
Mapping[
str,ChannelVoiceStateContainer]: Retrieves all available channel voice state containers as mapping of channel IDs.- Parameters:
ctx (
BaseCacheContext) – The context.
- abstractmethod store_channel_voice_state(container, ctx, /)[source]¶
Stores a channel voice state container.
- Parameters:
container (
ChannelVoiceStateContainer) – The container to store.ctx (
BaseCacheContext) – The context.
- abstractmethod bulk_store_channel_voice_states(containers, ctx, /)[source]¶
Stores channel voice state containers in bulk.
- Parameters:
containers (Dict[
str,ChannelVoiceStateContainer]) – The containers to store.ctx (
BaseCacheContext) – The context.
- abstractmethod delete_channel_voice_state(channel_id, ctx, /)[source]¶
Deletes a channel voice state container by channel ID.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
Implementations¶
EmptyCache¶
- def bulk_store_channel_voice_states
- def bulk_store_server_members
- def bulk_store_users
- def delete_channel
- def delete_channel_voice_state
- def delete_emoji
- def delete_message
- def delete_messages_of
- def delete_private_channel_by_user
- def delete_read_state
- def delete_server
- def delete_server_emojis_of
- def delete_server_member
- def delete_server_members_of
- def delete_user
- def get_all_channel_voice_states
- def get_all_channels
- def get_all_emojis
- def get_all_messages_of
- def get_all_private_channels_by_users
- def get_all_read_states
- def get_all_server_members_of
- def get_all_servers
- def get_all_users
- def get_channel
- def get_channel_voice_states_mapping
- def get_channels_mapping
- def get_emoji
- def get_emojis_mapping
- def get_message
- def get_messages_mapping_of
- def get_private_channel_by_user
- def get_private_channels_by_users_mapping
- def get_private_channels_mapping
- def get_read_state
- def get_read_states_mapping
- def get_server
- def get_server_emojis_mapping
- def get_server_emojis_mapping_of
- def get_server_member
- def get_server_members_mapping_of
- def get_servers_mapping
- def get_servers_member_mapping
- def get_user
- def get_users_mapping
- def overwrite_server_members
- def store_channel
- def store_channel_voice_state
- def store_emoji
- def store_message
- def store_private_channel_by_user
- def store_read_state
- def store_server
- def store_server_member
- def store_user
- class stoat.EmptyCache[source]¶
Bases:
CacheImplementation of cache which doesn’t actually store anything.
- get_channel(channel_id, ctx, /)[source]¶
Optional[
Channel]: Retrieves a channel using ID.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_channels_mapping(ctx, /)[source]¶
Mapping[
str,Channel]: Retrieves all available channels as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_channel(channel, ctx, /)[source]¶
Stores a channel.
- Parameters:
channel (
Channel) – The channel to store.ctx (
BaseCacheContext) – The context.
- delete_channel(channel_id, ctx, /)[source]¶
Deletes a channel.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_private_channels_mapping(ctx, /)[source]¶
Mapping[
str, Union[DMChannel,GroupChannel]]: Retrieve all private channels as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_message(channel_id, message_id, ctx, /)[source]¶
Optional[
Message]: Retrieves a message in channel using channel and message IDs.- Parameters:
channel_id (
str) – The channel’s ID.message_id (
str) – The message’s ID.ctx (
BaseCacheContext) – The context.
- get_messages_mapping_of(channel_id, ctx, /)[source]¶
Optional[Mapping[
str,Message]]: Retrieves all messages from a channel as mapping.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- store_message(message, ctx, /)[source]¶
Stores a message.
- Parameters:
message (
Message) – The message to store.ctx (
BaseCacheContext) – The context.
- delete_message(channel_id, message_id, ctx, /)[source]¶
Deletes a message from channel.
- Parameters:
channel_id (
str) – The channel’s ID.message_id (
str) – The message’s ID.ctx (
BaseCacheContext) – The context.
- delete_messages_of(channel_id, ctx, /)[source]¶
Deletes all messages from a channel.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_read_state(channel_id, ctx, /)[source]¶
Optional[
ReadState]: Retrieves a read state using channel ID.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_read_states_mapping(ctx, /)[source]¶
Mapping[
str,ReadState]: Retrieves all available read states as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_read_state(read_state, ctx, /)[source]¶
Stores a channel.
- Parameters:
channel (
Channel) – The channel to store.ctx (
BaseCacheContext) – The context.
- delete_read_state(channel_id, ctx, /)[source]¶
Deletes a read state.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_emoji(emoji_id, ctx, /)[source]¶
Optional[
Emoji]: Retrieves an emoji using ID.- Parameters:
emoji_id (
str) – The emoji’s ID.ctx (
BaseCacheContext) – The context.
- get_emojis_mapping(ctx, /)[source]¶
Mapping[
str,Emoji]: Retrieves all available emojis as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_server_emojis_mapping()[source]¶
Mapping[
str, Mapping[str,ServerEmoji]]: Retrieves all available server emojis as mapping of server ID to mapping of emoji IDs.
- get_server_emojis_mapping_of(server_id, ctx, /)[source]¶
Optional[Mapping[
str,ServerEmoji]]: Retrieves all emojis from a server as mapping.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- delete_server_emojis_of(server_id, ctx, /)[source]¶
Deletes all emojis from a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- store_emoji(emoji, ctx, /)[source]¶
Stores an emoji.
- Parameters:
emoji (
Emoji) – The emoji to store.ctx (
BaseCacheContext) – The context.
- delete_emoji(emoji_id, server_id, ctx, /)[source]¶
Deletes an emoji from server.
- Parameters:
emoji_id (
str) – The emoji’s ID.server_id (Optional[
str]) – The server’s ID.Noneif server ID is unavailable.ctx (
BaseCacheContext) – The context.
- get_server(server_id, ctx, /)[source]¶
Optional[
Server]: Retrieves a server using ID.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- get_servers_mapping(ctx, /)[source]¶
Mapping[
str,Server]: Retrieves all available servers as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_server(server, ctx, /)[source]¶
Stores a server.
- Parameters:
server (
Server) – The server to store.ctx (
BaseCacheContext) – The context.
- delete_server(server_id, ctx, /)[source]¶
Deletes a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- Returns:
The server removed from the cache, if any.
- Return type:
Optional[
Server]
- get_server_member(server_id, user_id, ctx, /)[source]¶
Optional[
Member]: Retrieves a member in server using server and user IDs.- Parameters:
server_id (
str) – The server’s ID.user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_server_members_mapping_of(server_id, ctx, /)[source]¶
Optional[Mapping[
str,Member]]: Retrieves all members from a server as mapping.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- bulk_store_server_members(server_id, members, ctx, /)[source]¶
Stores server members in bulk.
- Parameters:
server_id (
str) – The server’s ID to store members in.ctx (
BaseCacheContext) – The context.
- overwrite_server_members(server_id, members, ctx, /)[source]¶
Overwrites members of a server.
- Parameters:
server_id (
str) – The server’s ID to overwrite members in.ctx (
BaseCacheContext) – The context.
- store_server_member(member, ctx, /)[source]¶
Stores a member.
- Parameters:
member (
Member) – The member to store.ctx (
BaseCacheContext) – The context.
- delete_server_member(server_id, user_id, ctx, /)[source]¶
Deletes a member from server.
- Parameters:
channel_id (
str) – The channel’s ID.member_id (
str) – The member user’s ID.ctx (
BaseCacheContext) – The context.
- delete_server_members_of(server_id, ctx, /)[source]¶
Deletes all members from a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- get_servers_member_mapping(ctx, /)[source]¶
Mapping[
str, Mapping[str,Member]]: Retrieves all available server members as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_user(user_id, ctx, /)[source]¶
Optional[
User]: Retrieves an user using ID.- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_users_mapping(ctx, /)[source]¶
Mapping[
str,User]: Retrieves all available users as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_user(user, ctx, /)[source]¶
Stores an user.
- Parameters:
user (
User) – The user to store.ctx (
BaseCacheContext) – The context.
- delete_user(user_id, ctx, /)[source]¶
Removes an user from cache.
- Parameters:
user_id (
str) – The ID of the user to remove from cache.ctx (
BaseCacheContext) – The context.
- Returns:
The removed user.
- Return type:
Optional[
User]
- bulk_store_users(users, ctx, /)[source]¶
Stores users in bulk.
- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_channel_voice_states(ctx, /)[source]¶
Sequence[
ChannelVoiceStateContainer]: Retrieves all available channel voice state containers as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_channels(ctx, /)[source]¶
Sequence[
Channel]: Retrieves all available channels as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_emojis(ctx, /)[source]¶
Sequence[
Emoji]: Retrieves all available emojis as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_messages_of(channel_id, ctx, /)[source]¶
Optional[Sequence[
Message]]: Retrieves all messages from a channel.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_all_private_channels_by_users(ctx, /)[source]¶
Sequence[
str]: Retrieves all available DM channel IDs as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_read_states(ctx, /)[source]¶
Sequence[
ReadState]: Retrieves all available read states as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_server_members_of(server_id, ctx, /)[source]¶
Optional[Sequence[
Member]]: Retrieves all members from a server.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- get_all_servers(ctx, /)[source]¶
Sequence[
Server]: Retrieves all available servers as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_users(ctx, /)[source]¶
Sequence[
User]: Retrieves all available users as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_private_channel_by_user(user_id, ctx, /)[source]¶
Optional[
str]: Retrieves a private channel ID using user ID.- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_private_channels_by_users_mapping(ctx, /)[source]¶
Mapping[
str,str]: Retrieves all available DM channel IDs as mapping of user IDs.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_private_channel_by_user(channel, ctx, /)[source]¶
Stores a DM channel.
- Parameters:
channel (
DMChannel) – The channel to store.ctx (
BaseCacheContext) – The context.
- delete_private_channel_by_user(user_id, ctx, /)[source]¶
Deletes a DM channel by user ID.
- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_channel_voice_states_mapping(ctx, /)[source]¶
Mapping[
str,ChannelVoiceStateContainer]: Retrieves all available channel voice state containers as mapping of channel IDs.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_channel_voice_state(container, ctx, /)[source]¶
Stores a channel voice state container.
- Parameters:
container (
ChannelVoiceStateContainer) – The container to store.ctx (
BaseCacheContext) – The context.
- bulk_store_channel_voice_states(containers, ctx, /)[source]¶
Stores channel voice state containers in bulk.
- Parameters:
containers (Dict[
str,ChannelVoiceStateContainer]) – The containers to store.ctx (
BaseCacheContext) – The context.
- delete_channel_voice_state(channel_id, ctx, /)[source]¶
Deletes a channel voice state container by channel ID.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
MapCache¶
- def bulk_store_channel_voice_states
- def bulk_store_server_members
- def bulk_store_users
- def delete_channel
- def delete_channel_voice_state
- def delete_emoji
- def delete_message
- def delete_messages_of
- def delete_private_channel_by_user
- def delete_read_state
- def delete_server
- def delete_server_emojis_of
- def delete_server_member
- def delete_server_members_of
- def delete_user
- def get_all_channel_voice_states
- def get_all_channels
- def get_all_emojis
- def get_all_messages_of
- def get_all_private_channels_by_users
- def get_all_read_states
- def get_all_server_members_of
- def get_all_servers
- def get_all_users
- def get_channel
- def get_channel_voice_states_mapping
- def get_channels_mapping
- def get_emoji
- def get_emojis_mapping
- def get_message
- def get_messages_mapping_of
- def get_private_channel_by_user
- def get_private_channels_by_users_mapping
- def get_private_channels_mapping
- def get_read_state
- def get_read_states_mapping
- def get_server
- def get_server_emojis_mapping
- def get_server_emojis_mapping_of
- def get_server_member
- def get_server_members_mapping_of
- def get_servers_mapping
- def get_servers_member_mapping
- def get_user
- def get_users_mapping
- def overwrite_server_members
- def store_channel
- def store_channel_voice_state
- def store_emoji
- def store_message
- def store_private_channel_by_user
- def store_read_state
- def store_server
- def store_server_member
- def store_user
- class stoat.MapCache(*, channels_max_size=-1, emojis_max_size=-1, messages_max_size=1000, private_channels_by_user_max_size=-1, private_channels_max_size=-1, read_states_max_size=-1, server_emojis_max_size=-1, server_members_max_size=-1, servers_max_size=-1, users_max_size=-1, channel_voice_states_max_size=-1)[source]¶
Bases:
CacheImplementation of
CacheABC based ondict’s.Parameters of this class accept negative value to represent infinite count.
- Parameters:
channels_max_size (
int) – How many channels can have cache. Defaults to-1.emojis_max_size (
int) – How many emojis can have cache. Defaults to-1.messages_max_size (
int) – How many messages can have cache per channel. Defaults to1000.private_channels_by_user_max_size (
int) – How many DM channels by user can have cache. Defaults to-1.private_channels_max_size (
int) – How many private channels can have cache. Defaults to-1.read_states_max_size (
int) – How many read states can have cache. Defaults to-1.server_emojis_max_size (
int) – How many server emojis can have cache. Defaults to-1.server_members_max_size (
int) – How many server members can have cache. Defaults to-1.servers_max_size (
int) – How many servers can have cache. Defaults to-1.users_max_size (
int) – How many users can have cache. Defaults to-1.channel_voice_states_max_size (
int) – How many channel voice state containers can have cache. Defaults to-1.
- get_all_channel_voice_states(ctx, /)[source]¶
Sequence[
ChannelVoiceStateContainer]: Retrieves all available channel voice state containers as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_channels(ctx, /)[source]¶
Sequence[
Channel]: Retrieves all available channels as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_emojis(ctx, /)[source]¶
Sequence[
Emoji]: Retrieves all available emojis as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_messages_of(channel_id, ctx, /)[source]¶
Optional[Sequence[
Message]]: Retrieves all messages from a channel.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_all_private_channels_by_users(ctx, /)[source]¶
Sequence[
str]: Retrieves all available DM channel IDs as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_read_states(ctx, /)[source]¶
Sequence[
ReadState]: Retrieves all available read states as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_server_members_of(server_id, ctx, /)[source]¶
Optional[Sequence[
Member]]: Retrieves all members from a server.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- get_all_servers(ctx, /)[source]¶
Sequence[
Server]: Retrieves all available servers as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_all_users(ctx, /)[source]¶
Sequence[
User]: Retrieves all available users as sequence.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_channel(channel_id, ctx, /)[source]¶
Optional[
Channel]: Retrieves a channel using ID.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_channels_mapping(ctx, /)[source]¶
Mapping[
str,Channel]: Retrieves all available channels as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_channel(channel, ctx, /)[source]¶
Stores a channel.
- Parameters:
channel (
Channel) – The channel to store.ctx (
BaseCacheContext) – The context.
- delete_channel(channel_id, ctx, /)[source]¶
Deletes a channel.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_private_channels_mapping(ctx, /)[source]¶
Mapping[
str, Union[DMChannel,GroupChannel]]: Retrieve all private channels as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_message(channel_id, message_id, ctx, /)[source]¶
Optional[
Message]: Retrieves a message in channel using channel and message IDs.- Parameters:
channel_id (
str) – The channel’s ID.message_id (
str) – The message’s ID.ctx (
BaseCacheContext) – The context.
- get_messages_mapping_of(channel_id, ctx, /)[source]¶
Optional[Mapping[
str,Message]]: Retrieves all messages from a channel as mapping.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- store_message(message, ctx, /)[source]¶
Stores a message.
- Parameters:
message (
Message) – The message to store.ctx (
BaseCacheContext) – The context.
- delete_message(channel_id, message_id, ctx, /)[source]¶
Deletes a message from channel.
- Parameters:
channel_id (
str) – The channel’s ID.message_id (
str) – The message’s ID.ctx (
BaseCacheContext) – The context.
- delete_messages_of(channel_id, ctx, /)[source]¶
Deletes all messages from a channel.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_read_state(channel_id, ctx, /)[source]¶
Optional[
ReadState]: Retrieves a read state using channel ID.- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_read_states_mapping(ctx, /)[source]¶
Mapping[
str,ReadState]: Retrieves all available read states as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_read_state(read_state, ctx, /)[source]¶
Stores a channel.
- Parameters:
channel (
Channel) – The channel to store.ctx (
BaseCacheContext) – The context.
- delete_read_state(channel_id, ctx, /)[source]¶
Deletes a read state.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
- get_emoji(emoji_id, ctx, /)[source]¶
Optional[
Emoji]: Retrieves an emoji using ID.- Parameters:
emoji_id (
str) – The emoji’s ID.ctx (
BaseCacheContext) – The context.
- get_emojis_mapping(ctx, /)[source]¶
Mapping[
str,Emoji]: Retrieves all available emojis as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_server_emojis_mapping()[source]¶
Mapping[
str, Mapping[str,ServerEmoji]]: Retrieves all available server emojis as mapping of server ID to mapping of emoji IDs.
- get_server_emojis_mapping_of(server_id, ctx, /)[source]¶
Optional[Mapping[
str,ServerEmoji]]: Retrieves all emojis from a server as mapping.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- delete_server_emojis_of(server_id, ctx, /)[source]¶
Deletes all emojis from a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- store_emoji(emoji, ctx, /)[source]¶
Stores an emoji.
- Parameters:
emoji (
Emoji) – The emoji to store.ctx (
BaseCacheContext) – The context.
- delete_emoji(emoji_id, server_id, ctx, /)[source]¶
Deletes an emoji from server.
- Parameters:
emoji_id (
str) – The emoji’s ID.server_id (Optional[
str]) – The server’s ID.Noneif server ID is unavailable.ctx (
BaseCacheContext) – The context.
- get_server(server_id, ctx, /)[source]¶
Optional[
Server]: Retrieves a server using ID.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- get_servers_mapping(ctx, /)[source]¶
Mapping[
str,Server]: Retrieves all available servers as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_server(server, ctx, /)[source]¶
Stores a server.
- Parameters:
server (
Server) – The server to store.ctx (
BaseCacheContext) – The context.
- delete_server(server_id, ctx, /)[source]¶
Deletes a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- Returns:
The server removed from the cache, if any.
- Return type:
Optional[
Server]
- get_server_member(server_id, user_id, ctx, /)[source]¶
Optional[
Member]: Retrieves a member in server using server and user IDs.- Parameters:
server_id (
str) – The server’s ID.user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_server_members_mapping_of(server_id, ctx, /)[source]¶
Optional[Mapping[
str,Member]]: Retrieves all members from a server as mapping.- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- bulk_store_server_members(server_id, members, ctx, /)[source]¶
Stores server members in bulk.
- Parameters:
server_id (
str) – The server’s ID to store members in.ctx (
BaseCacheContext) – The context.
- overwrite_server_members(server_id, members, ctx, /)[source]¶
Overwrites members of a server.
- Parameters:
server_id (
str) – The server’s ID to overwrite members in.ctx (
BaseCacheContext) – The context.
- store_server_member(member, ctx, /)[source]¶
Stores a member.
- Parameters:
member (
Member) – The member to store.ctx (
BaseCacheContext) – The context.
- delete_server_member(server_id, user_id, ctx, /)[source]¶
Deletes a member from server.
- Parameters:
channel_id (
str) – The channel’s ID.member_id (
str) – The member user’s ID.ctx (
BaseCacheContext) – The context.
- delete_server_members_of(server_id, ctx, /)[source]¶
Deletes all members from a server.
- Parameters:
server_id (
str) – The server’s ID.ctx (
BaseCacheContext) – The context.
- get_servers_member_mapping(ctx, /)[source]¶
Mapping[
str, Mapping[str,Member]]: Retrieves all available server members as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- get_user(user_id, ctx, /)[source]¶
Optional[
User]: Retrieves an user using ID.- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_users_mapping(ctx, /)[source]¶
Mapping[
str,User]: Retrieves all available users as mapping.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_user(user, ctx, /)[source]¶
Stores an user.
- Parameters:
user (
User) – The user to store.ctx (
BaseCacheContext) – The context.
- delete_user(user_id, ctx, /)[source]¶
Removes an user from cache.
- Parameters:
user_id (
str) – The ID of the user to remove from cache.ctx (
BaseCacheContext) – The context.
- Returns:
The removed user.
- Return type:
Optional[
User]
- bulk_store_users(users, ctx, /)[source]¶
Stores users in bulk.
- Parameters:
ctx (
BaseCacheContext) – The context.
- get_private_channel_by_user(user_id, ctx, /)[source]¶
Optional[
str]: Retrieves a private channel ID using user ID.- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_private_channels_by_users_mapping(ctx, /)[source]¶
Mapping[
str,str]: Retrieves all available DM channel IDs as mapping of user IDs.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_private_channel_by_user(channel, ctx, /)[source]¶
Stores a DM channel.
- Parameters:
channel (
DMChannel) – The channel to store.ctx (
BaseCacheContext) – The context.
- delete_private_channel_by_user(user_id, ctx, /)[source]¶
Deletes a DM channel by user ID.
- Parameters:
user_id (
str) – The user’s ID.ctx (
BaseCacheContext) – The context.
- get_channel_voice_states_mapping(ctx, /)[source]¶
Mapping[
str,ChannelVoiceStateContainer]: Retrieves all available channel voice state containers as mapping of channel IDs.- Parameters:
ctx (
BaseCacheContext) – The context.
- store_channel_voice_state(container, ctx, /)[source]¶
Stores a channel voice state container.
- Parameters:
container (
ChannelVoiceStateContainer) – The container to store.ctx (
BaseCacheContext) – The context.
- bulk_store_channel_voice_states(containers, ctx, /)[source]¶
Stores channel voice state containers in bulk.
- Parameters:
containers (Dict[
str,ChannelVoiceStateContainer]) – The containers to store.ctx (
BaseCacheContext) – The context.
- delete_channel_voice_state(channel_id, ctx, /)[source]¶
Deletes a channel voice state container by channel ID.
- Parameters:
channel_id (
str) – The channel’s ID.ctx (
BaseCacheContext) – The context.
CacheContextType¶
- class stoat.CacheContextType[source]¶
Specifies a type of cache context.
- custom¶
The context is custom.
- undefined¶
The context is not provided.
- ready_event¶
The context relates to
ReadyEventevent.
- private_channel_create_event¶
The context relates to
PrivateChannelCreateEventevent.
- server_channel_create_event¶
The context relates to
ServerChannelCreateEventevent.
- channel_update_event¶
The context relates to
ChannelUpdateEventevent.
- channel_delete_event¶
The context relates to
ChannelDeleteEventevent.
- group_recipient_add_event¶
The context relates to
GroupRecipientAddEventevent.
- group_recipient_remove_event¶
The context relates to
GroupRecipientRemoveEventevent.
- channel_start_typing_event¶
The context relates to
ChannelStartTypingEventevent.
- channel_stop_typing_event¶
The context relates to
ChannelStopTypingEventevent.
- message_ack_event¶
The context relates to
MessageAckEventevent.
- message_create_event¶
The context relates to
MessageCreateEventevent.
- message_update_event¶
The context relates to
MessageUpdateEventevent.
- message_append_event¶
The context relates to
MessageAppendEventevent.
- message_delete_event¶
The context relates to
MessageDeleteEventevent.
- message_react_event¶
The context relates to
MessageReactEventevent.
- message_unreact_event¶
The context relates to
MessageUnreactEventevent.
- message_clear_reaction_event¶
The context relates to
MessageClearReactionEventevent.
- message_delete_bulk_event¶
The context relates to
MessageDeleteBulkEventevent.
- server_create_event¶
The context relates to
ServerCreateEventevent.
- server_emoji_create_event¶
The context relates to
ServerEmojiCreateEventevent.
- server_emoji_delete_event¶
The context relates to
ServerEmojiDeleteEventevent.
- server_update_event¶
The context relates to
ServerUpdateEventevent.
- server_delete_event¶
The context relates to
ServerDeleteEventevent.
- server_member_join_event¶
The context relates to
ServerMemberJoinEventevent.
- server_member_update_event¶
The context relates to
ServerMemberUpdateEventevent.
- server_member_remove_event¶
The context relates to
ServerMemberRemoveEventevent.
- raw_server_role_update_event¶
The context relates to
RawServerRoleUpdateEventevent.
- server_role_delete_event¶
The context relates to
ServerRoleDeleteEventevent.
- server_role_ranks_update_event¶
The context relates to
ServerRoleRanksUpdateEventevent.Added in version 1.2.
- report_create_event¶
The context relates to
ReportCreateEventevent.
- user_update_event¶
The context relates to
UserUpdateEventevent.
- user_platform_wipe_event¶
The context relates to
UserPlatformWipeEventevent.
- user_relationship_update_event¶
The context relates to
UserRelationshipUpdateEventevent.
- user_settings_update_event¶
The context relates to
UserSettingsUpdateEventevent.
- webhook_create_event¶
The context relates to
WebhookCreateEventevent.
- webhook_update_event¶
The context relates to
WebhookUpdateEventevent.
- webhook_delete_event¶
The context relates to
WebhookDeleteEventevent.
- session_create_event¶
The context relates to
SessionCreateEventevent.
- session_delete_event¶
The context relates to
SessionDeleteEventevent.
- session_delete_all_event¶
The context relates to
SessionDeleteAllEventevent.
- voice_channel_join_event¶
The context relates to
VoiceChannelJoinEventevent.
- voice_channel_leave_event¶
The context relates to
VoiceChannelLeaveEventevent.
- voice_channel_move_event¶
The context relates to
VoiceChannelMoveEventevent.
- user_voice_state_update_event¶
The context relates to
UserVoiceStateUpdateEventevent.
- user_move_voice_channel_event¶
The context relates to
UserMoveVoiceChannelEventevent.
- authenticated_event¶
The context relates to
AuthenticatedEventevent.
- message_through_messageable_getter¶
The context comes from
Messageable.get_message().
- messages_through_messageable_getter¶
The context comes from
Messageable.messages.
- user_through_dm_channel_initiator¶
The context comes from
DMChannel.initiator.
- message_through_dm_channel_last_message¶
The context comes from
DMChannel.last_message.
- read_state_through_dm_channel_read_state¶
The context comes from
DMChannel.read_state.
- user_through_dm_channel_recipient¶
The context comes from
DMChannel.recipient.
- user_through_dm_channel_recipients¶
The context comes from
DMChannel.recipients.
- message_through_group_channel_last_message¶
The context comes from
GroupChannel.last_message.
- user_through_group_channel_owner¶
The context comes from
GroupChannel.owner.
- read_state_through_group_channel_read_state¶
The context comes from
GroupChannel.read_state.
- user_through_group_channel_recipients¶
The context comes from
GroupChannel.recipients.
- server_through_server_channel_category¶
The context comes from
BaseServerChannel.category.Added in version 1.2.
- member_through_server_channel_me¶
The context comes from
BaseServerChannel.me.
- server_through_server_channel_server¶
The context comes from
BaseServerChannel.server.
- message_through_text_channel_last_message¶
The context comes from
TextChannel.last_message.
- read_state_through_text_channel_read_state¶
The context comes from
TextChannel.read_state.
- channel_voice_state_container_through_text_channel_voice_states¶
The context comes from
TextChannel.voice_states.
- channel_voice_state_container_through_voice_channel_voice_states¶
The context comes from
VoiceChannel.voice_states.
- channels_through_client_getter¶
The context comes from
Client.channels.
- emojis_through_client_getter¶
The context comes from
Client.emojis.
- server_members_through_client_getter¶
The context comes from
Client.members
- read_states_through_client_getter¶
The context comes from
Client.read_states.
- servers_through_client_getter¶
The context comes from
Client.servers.
- users_through_client_getter¶
The context comes from
Client.users.
- voice_states_through_client_getter¶
The context comes from
Client.voice_states
- user_ids_through_client_dm_channel_ids¶
The context comes from
Client.dm_channel_ids.
- channels_through_client_dm_channels¶
The context comes from
Client.dm_channels.
- channels_through_client_private_channels¶
The context comes from
Client.private_channels.
- channel_through_client_getter¶
The context comes from
Client.get_channel().
- emoji_through_client_getter¶
The context comes from
Client.get_emoji().
- read_state_through_client_getter¶
The context comes from
Client.get_read_state().
- server_through_client_getter¶
The context comes from
Client.get_server().
- user_through_client_getter¶
The context comes from
Client.get_user().
- member_or_user_through_server_emoji_creator¶
The context comes from
ServerEmoji.creator
- member_through_server_emoji_creator¶
The context comes from
ServerEmoji.creator_as_member
- user_through_server_emoji_creator¶
The context comes from
ServerEmoji.creator_as_user
- user_through_detached_emoji_creator¶
The context comes from
ServeBaseEmojirEmoji.creator
- server_through_server_emoji_server¶
The context comes from
ServerEmoji.server.
- server_through_server_public_invite_server¶
The context comes from
ServerPublicInvite.server.
- channel_through_server_public_invite_channel¶
The context comes from
ServerPublicInvite.channel.
- user_through_server_public_invite_user¶
The context comes from
ServerPublicInvite.user.
- channel_through_group_public_invite_channel¶
The context comes from
GroupPublicInvite.channel.
- user_through_group_public_invite_user¶
The context comes from
GroupPublicInvite.user.
- channel_through_group_invite_channel¶
The context comes from
GroupInvite.channel.
- user_through_group_invite_creator¶
The context comes from
GroupInvite.creator.
- server_through_server_invite_server¶
The context comes from
ServerInvite.server.
- channel_through_server_invite_channel¶
The context comes from
ServerInvite.channel.
- member_or_user_through_server_invite_creator¶
The context comes from
ServerInvite.creator.
- member_through_server_invite_creator¶
The context comes from
ServerInvite.creator_as_member.
- user_through_server_invite_creator¶
The context comes from
ServerInvite.creator_as_user.
- user_through_user_added_system_event_user¶
The context comes from
UserAddedSystemEvent.user.
- user_through_user_added_system_event_by¶
The context comes from
UserAddedSystemEvent.by.
- user_through_user_removed_system_event_user¶
The context comes from
UserRemovedSystemEvent.user.
- user_through_user_removed_system_event_by¶
The context comes from
UserRemovedSystemEvent.by.
- member_or_user_through_user_joined_system_event_user¶
The context comes from
UserJoinedSystemEvent.user.
- member_through_user_joined_system_event_user¶
The context comes from
UserJoinedSystemEvent.user_as_member.
- user_through_user_joined_system_event_user¶
The context comes from
UserJoinedSystemEvent.user_as_user.
- member_or_user_through_user_left_system_event_user¶
The context comes from
UserLeftSystemEvent.user.
- member_through_user_left_system_event_user¶
The context comes from
UserLeftSystemEvent.user_as_member.
- user_through_user_left_system_event_user¶
The context comes from
UserLeftSystemEvent.user_as_user.
- member_or_user_through_user_kicked_system_event_user¶
The context comes from
UserKickedSystemEvent.user.
- member_through_user_kicked_system_event_user¶
The context comes from
UserKickedSystemEvent.user_as_member.
- user_through_user_kicked_system_event_user¶
The context comes from
UserKickedSystemEvent.user_as_user.
- member_or_user_through_user_banned_system_event_user¶
The context comes from
UserBannedSystemEvent.user.
- member_through_user_banned_system_event_user¶
The context comes from
UserBannedSystemEvent.user_as_member.
- user_through_user_banned_system_event_user¶
The context comes from
UserBannedSystemEvent.user_as_user.
- user_through_channel_renamed_system_event_by¶
The context comes from
ChannelRenamedSystemEvent.by.
- user_through_channel_description_changed_system_event_by¶
The context comes from
ChannelDescriptionChangedSystemEvent.by.
- user_through_channel_icon_changed_system_event_by¶
The context comes from
ChannelIconChangedSystemEvent.by.
- user_through_channel_ownership_changed_system_event_from¶
The context comes from
ChannelOwnershipChangedSystemEvent.from_.
- user_through_channel_ownership_changed_system_event_to¶
The context comes from
ChannelOwnershipChangedSystemEvent.to.
- message_through_message_pinned_system_event_pinned_message¶
The context comes from
MessagePinnedSystemEvent.pinned_message.
- member_or_user_through_message_pinned_system_event_by¶
The context comes from
MessagePinnedSystemEvent.by.
- member_through_message_pinned_system_event_by¶
The context comes from
MessagePinnedSystemEvent.by_as_member.
- user_through_message_pinned_system_event_by¶
The context comes from
MessagePinnedSystemEvent.by_as_user.
- message_through_message_unpinned_system_event_unpinned_message¶
The context comes from
MessageUnpinnedSystemEvent.unpinned_message.
- member_or_user_through_message_unpinned_system_event_by¶
The context comes from
MessageUnpinnedSystemEvent.by.
- member_through_message_unpinned_system_event_by¶
The context comes from
MessageUnpinnedSystemEvent.by_as_member.
- user_through_message_unpinned_system_event_by¶
The context comes from
MessageUnpinnedSystemEvent.by_as_user.
- user_through_call_started_system_event_by¶
The context comes from
CallStartedSystemEvent.by.
- channel_through_message_channel¶
The context comes from
Message.channel.
- server_through_message_server¶
The context comes from
Message.server.
- member_or_user_through_message_author¶
The context comes from
Message.author.
- member_through_message_author¶
The context comes from
Message.author_as_member.
- user_through_message_author¶
The context comes from
Message.author_as_user.
- member_or_users_through_message_mentions¶
The context comes from
Message.mentions.
- members_through_message_mentions¶
The context comes from
Message.mentions_as_members.
- users_through_message_mentions¶
The context comes from
Message.mentions_as_users.
- role_through_message_role_mentions¶
The context comes from
Message.role_mentions.
- channel_through_read_state_channel¶
The context comes from
ReadState.channel.
- members_through_role_members¶
The context comes from
Role.members.
- server_through_role_server¶
The context comes from
Role.server.
- emoji_through_server_getter¶
The context comes from
Server.get_emoji().
- member_through_server_getter¶
The context comes from
Server.get_member().
- emojis_through_server_getter¶
The context comes from
Server.emojis.
- members_through_server_getter¶
The context comes from
Server.members.
- channel_through_server_getter¶
The context comes from
Server.get_channel().
- channels_through_server_getter¶
The context comes from
Server.channels.
- member_or_user_through_server_owner¶
The context comes from
Server.owner.
- member_through_server_owner¶
The context comes from
Server.owner_as_member.
- user_through_server_owner¶
The context comes from
Server.owner_as_user.
- server_through_member_server¶
The context comes from
Member.server.
- user_through_member_user¶
The context comes from
Member.user.
- user_through_member_bot_owner¶
The context comes from
Member.bot_owner.
- channel_id_through_member_dm_channel_id¶
The context comes from
Member.dm_channel_id.
- channel_through_member_dm_channel¶
The context comes from
Member.dm_channel.
- user_through_member_name¶
The context comes from
Member.name.
- user_through_member_discriminator¶
The context comes from
Member.discriminator.
- user_through_member_display_name¶
The context comes from
Member.display_name.
- user_through_member_internal_avatar¶
The context comes from
Member.internal_avatar.
- user_through_member_raw_badges¶
The context comes from
Member.raw_badges.
- user_through_member_status¶
The context comes from
Member.status.
- user_through_member_raw_flags¶
The context comes from
Member.raw_flags.
- user_through_member_privileged¶
The context comes from
Member.privileged.
- user_through_member_bot¶
The context comes from
Member.bot.
- user_through_member_relationship¶
The context comes from
Member.relationship.
- user_through_member_online¶
The context comes from
Member.online.
- user_through_member_tag¶
The context comes from
Member.tag.
- server_through_member_roles¶
The context comes from
Member.roles.
- server_through_member_server_permissions¶
The context comes from
Member.server_permissions.
- server_through_member_top_role¶
The context comes from
Member.top_role.
- user_through_user_bot_owner¶
The context comes from
User.bot_owner.
- channel_id_through_user_dm_channel_id¶
The context comes from
User.dm_channel_id.
- channel_through_user_dm_channel¶
The context comes from
User.dm_channel.
- member_or_user_through_webhook_creator¶
The context comes from
Webhook.creator.
- member_through_webhook_creator¶
The context comes from
Webhook.creator_as_member.
- user_through_webhook_creator¶
The context comes from
Webhook.creator_as_user.
- channel_through_webhook_channel¶
The context comes from
Webhook.channel.
BaseCacheContext¶
UndefinedCacheContext¶
- class stoat.UndefinedCacheContext(*, type)[source]¶
Bases:
BaseCacheContextRepresents an undefined cache context.
- type¶
The context’s type.
- Type:
PrivateChannelCreateEventCacheContext¶
- class stoat.PrivateChannelCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
PrivateChannelCreateEvent.- event¶
The event involved.
- type¶
The context’s type.
- Type:
ServerChannelCreateEventCacheContext¶
- class stoat.ServerChannelCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerChannelCreateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelUpdateEventCacheContext¶
- class stoat.ChannelUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ChannelUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelDeleteEventCacheContext¶
- class stoat.ChannelDeleteEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ChannelDeleteEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
GroupRecipientAddEventCacheContext¶
- class stoat.GroupRecipientAddEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
GroupRecipientAddEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
GroupRecipientRemoveEventCacheContext¶
- class stoat.GroupRecipientRemoveEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
GroupRecipientRemoveEvent.- event¶
The event involved.
- type¶
The context’s type.
- Type:
ChannelStartTypingEventCacheContext¶
- class stoat.ChannelStartTypingEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ChannelStartTypingEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelStopTypingEventCacheContext¶
- class stoat.ChannelStopTypingEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ChannelStopTypingEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageAckEventCacheContext¶
- class stoat.MessageAckEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageAckEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageCreateEventCacheContext¶
- class stoat.MessageCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageCreateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageUpdateEventCacheContext¶
- class stoat.MessageUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageAppendEventCacheContext¶
- class stoat.MessageAppendEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageAppendEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageDeleteEventCacheContext¶
- class stoat.MessageDeleteEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageDeleteEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageReactEventCacheContext¶
- class stoat.MessageReactEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageReactEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageUnreactEventCacheContext¶
- class stoat.MessageUnreactEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageUnreactEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
MessageClearReactionEventCacheContext¶
- class stoat.MessageClearReactionEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageClearReactionEvent.- event¶
The event involved.
- type¶
The context’s type.
- Type:
MessageDeleteBulkEventCacheContext¶
- class stoat.MessageDeleteBulkEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
MessageDeleteBulkEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerCreateEventCacheContext¶
- class stoat.ServerCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerCreateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerEmojiCreateEventCacheContext¶
- class stoat.ServerEmojiCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerEmojiCreateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerEmojiDeleteEventCacheContext¶
- class stoat.ServerEmojiDeleteEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerEmojiDeleteEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerUpdateEventCacheContext¶
- class stoat.ServerUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerDeleteEventCacheContext¶
- class stoat.ServerDeleteEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerDeleteEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerMemberJoinEventCacheContext¶
- class stoat.ServerMemberJoinEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerMemberJoinEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerMemberUpdateEventCacheContext¶
- class stoat.ServerMemberUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerMemberUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerMemberRemoveEventCacheContext¶
- class stoat.ServerMemberRemoveEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerMemberRemoveEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
RawServerRoleUpdateEventCacheContext¶
- class stoat.RawServerRoleUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
RawServerRoleUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerRoleDeleteEventCacheContext¶
- class stoat.ServerRoleDeleteEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerRoleDeleteEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
ServerRoleRanksUpdateEventCacheContext¶
- class stoat.ServerRoleRanksUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ServerRoleRanksUpdateEvent.- event¶
The event involved.
- type¶
The context’s type.
- Type:
ReportCreateEventCacheContext¶
- class stoat.ReportCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
ReportCreateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
UserUpdateEventCacheContext¶
- class stoat.UserUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
UserUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
UserRelationshipUpdateEventCacheContext¶
- class stoat.UserRelationshipUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
UserRelationshipUpdateEvent.- event¶
The event involved.
- type¶
The context’s type.
- Type:
UserSettingsUpdateEventCacheContext¶
- class stoat.UserSettingsUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
UserSettingsUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
UserPlatformWipeEventCacheContext¶
- class stoat.UserPlatformWipeEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
UserPlatformWipeEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
WebhookCreateEventCacheContext¶
- class stoat.WebhookCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
WebhookCreateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
WebhookUpdateEventCacheContext¶
- class stoat.WebhookUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
WebhookUpdateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
WebhookDeleteEventCacheContext¶
- class stoat.WebhookDeleteEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
WebhookDeleteEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
SessionCreateEventCacheContext¶
- class stoat.SessionCreateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
SessionCreateEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
SessionDeleteEventCacheContext¶
- class stoat.SessionDeleteEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
SessionDeleteEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
SessionDeleteAllEventCacheContext¶
- class stoat.SessionDeleteAllEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
SessionDeleteAllEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
VoiceChannelJoinEventCacheContext¶
- class stoat.VoiceChannelJoinEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
VoiceChannelJoinEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
VoiceChannelLeaveEventCacheContext¶
- class stoat.VoiceChannelLeaveEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
VoiceChannelLeaveEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
VoiceChannelMoveEventCacheContext¶
- class stoat.VoiceChannelMoveEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
VoiceChannelMoveEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
UserVoiceStateUpdateEventCacheContext¶
- class stoat.UserVoiceStateUpdateEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
UserVoiceStateUpdateEvent.- event¶
The event involved.
- type¶
The context’s type.
- Type:
UserMoveVoiceChannelEventCacheContext¶
- class stoat.UserMoveVoiceChannelEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
UserMoveVoiceChannelEvent.- event¶
The event involved.
- type¶
The context’s type.
- Type:
AuthenticatedEventCacheContext¶
- class stoat.AuthenticatedEventCacheContext(*, type, event)[source]¶
Bases:
EventCacheContextRepresents a cache context that involves a
AuthenticatedEvent.- event¶
The event involved.
- Type:
- type¶
The context’s type.
- Type:
EntityCacheContext¶
- class stoat.EntityCacheContext(*, type)[source]¶
Bases:
BaseCacheContextRepresents a cache context that involves an entity.
- type¶
The context’s type.
- Type:
MessageableCacheContext¶
- class stoat.MessageableCacheContext(*, type, entity)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Messageableentity.- type¶
The context’s type.
- Type:
BotCacheContext¶
- class stoat.BotCacheContext(*, type, bot)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Botentity.- type¶
The context’s type.
- Type:
DMChannelCacheContext¶
- class stoat.DMChannelCacheContext(*, type, channel)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
DMChannelentity.- type¶
The context’s type.
- Type:
GroupChannelCacheContext¶
- class stoat.GroupChannelCacheContext(*, type, channel)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
GroupChannelentity.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
BaseEmojiCacheContext¶
- class stoat.BaseEmojiCacheContext(*, type, emoji)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
BaseEmojientity.- type¶
The context’s type.
- Type:
ServerEmojiCacheContext¶
- class stoat.ServerEmojiCacheContext(*, type, emoji)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
ServerEmojientity.- emoji¶
The emoji involved.
- Type:
- type¶
The context’s type.
- Type:
ClientCacheContext¶
- class stoat.ClientCacheContext(*, type, client)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Client.- type¶
The context’s type.
- Type:
ServerPublicInviteCacheContext¶
- class stoat.ServerPublicInviteCacheContext(*, type, invite)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
ServerPublicInviteentity.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
GroupPublicInviteCacheContext¶
- class stoat.GroupPublicInviteCacheContext(*, type, invite)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
GroupPublicInviteentity.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
GroupInviteCacheContext¶
- class stoat.GroupInviteCacheContext(*, type, invite)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
GroupInviteentity.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
ServerInviteCacheContext¶
- class stoat.ServerInviteCacheContext(*, type, invite)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
ServerInviteentity.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
BaseMessageCacheContext¶
- class stoat.BaseMessageCacheContext(*, type, message)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
BaseMessageentity.- message¶
The message involved.
- Type:
- type¶
The context’s type.
- Type:
MessageCacheContext¶
- class stoat.MessageCacheContext(*, type, message)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Messageentity.- type¶
The context’s type.
- Type:
ReadStateCacheContext¶
- class stoat.ReadStateCacheContext(*, type, read_state)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
ReadStateentity.- type¶
The context’s type.
- Type:
BaseRoleCacheContext¶
- class stoat.BaseRoleCacheContext(*, type, role)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
BaseRoleentity.- type¶
The context’s type.
- Type:
BaseServerChannelCacheContext¶
- class stoat.BaseServerChannelCacheContext(*, type, channel)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
BaseServerChannelentity.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
BaseMemberCacheContext¶
- class stoat.BaseMemberCacheContext(*, type, member)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
BaseMemberentity.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
MemberCacheContext¶
- class stoat.MemberCacheContext(*, type, member)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Memberentity.- type¶
The context’s type.
- Type:
ServerCacheContext¶
- class stoat.ServerCacheContext(*, type, server)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Serverentity.- type¶
The context’s type.
- Type:
BaseUserCacheContext¶
- class stoat.BaseUserCacheContext(*, type, user)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
BaseUserentity.- type¶
The context’s type.
- Type:
UserCacheContext¶
- class stoat.UserCacheContext(*, type, user)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Userentity.- type¶
The context’s type.
- Type:
WebhookCacheContext¶
- class stoat.WebhookCacheContext(*, type, webhook)[source]¶
Bases:
EntityCacheContextRepresents a cache context that involves an
Webhookentity.- type¶
The context’s type.
- Type:
MessageThroughMessageableGetterCacheContext¶
- class stoat.MessageThroughMessageableGetterCacheContext(*, type, entity)[source]¶
Bases:
MessageableCacheContextRepresents a cache context that involves an
Messageableentity, wishing to retrieve single message from target.- type¶
The context’s type.
- Type:
MessagesThroughMessageableGetterCacheContext¶
- class stoat.MessagesThroughMessageableGetterCacheContext(*, type, entity)[source]¶
Bases:
MessageableCacheContextRepresents a cache context that involves an
Messageableentity, wishing to retrieve all messages in target.- type¶
The context’s type.
- Type:
UserThroughBotOwnerCacheContext¶
- class stoat.UserThroughBotOwnerCacheContext(*, type, bot)[source]¶
Bases:
BotCacheContextRepresents a cache context that involves an
Botentity, wishing to retrieve bot’s owner.- type¶
The context’s type.
- Type:
UserThroughDMChannelInitiatorCacheContext¶
- class stoat.UserThroughDMChannelInitiatorCacheContext(*, type, channel)[source]¶
Bases:
DMChannelCacheContextRepresents a cache context that involves an
DMChannel, wishing to retrieve DM channel’s initiator.- type¶
The context’s type.
- Type:
MessageThroughDMChannelLastMessageCacheContext¶
- class stoat.MessageThroughDMChannelLastMessageCacheContext(*, type, channel)[source]¶
Bases:
DMChannelCacheContextRepresents a cache context that involves an
DMChannel, wishing to retrieve last DM channel’s message.- type¶
The context’s type.
- Type:
ReadStateThroughDMChannelReadStateCacheContext¶
- class stoat.ReadStateThroughDMChannelReadStateCacheContext(*, type, channel)[source]¶
Bases:
DMChannelCacheContextRepresents a cache context that involves an
DMChannel, wishing to retrieve DM channel’s read state.- type¶
The context’s type.
- Type:
UserThroughDMChannelRecipientCacheContext¶
- class stoat.UserThroughDMChannelRecipientCacheContext(*, type, channel)[source]¶
Bases:
DMChannelCacheContextRepresents a cache context that involves an
DMChannel, wishing to retrieve DM channel’s recipient.- type¶
The context’s type.
- Type:
UserThroughDMChannelRecipientsCacheContext¶
- class stoat.UserThroughDMChannelRecipientsCacheContext(*, type, channel)[source]¶
Bases:
DMChannelCacheContextRepresents a cache context that involves an
DMChannel, wishing to retrieve DM channel’s recipients.- type¶
The context’s type.
- Type:
MessageThroughGroupChannelLastMessageCacheContext¶
- class stoat.MessageThroughGroupChannelLastMessageCacheContext(*, type, channel)[source]¶
Bases:
GroupChannelCacheContextRepresents a cache context that involves an
GroupChannel, wishing to retrieve last group channel’s message.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
ReadStateThroughGroupChannelReadStateCacheContext¶
- class stoat.ReadStateThroughGroupChannelReadStateCacheContext(*, type, channel)[source]¶
Bases:
GroupChannelCacheContextRepresents a cache context that involves an
GroupChannel, wishing to retrieve group channel’s read state.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughGroupChannelOwnerCacheContext¶
- class stoat.UserThroughGroupChannelOwnerCacheContext(*, type, channel)[source]¶
Bases:
GroupChannelCacheContextRepresents a cache context that involves an
GroupChannel, wishing to retrieve group channel’s owner.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughGroupChannelRecipientsCacheContext¶
- class stoat.UserThroughGroupChannelRecipientsCacheContext(*, type, channel)[source]¶
Bases:
GroupChannelCacheContextRepresents a cache context that involves an
GroupChannel, wishing to retrieve group channel’s recipients.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
ServerThroughServerChannelCategoryCacheContext¶
- class stoat.ServerThroughServerChannelCategoryCacheContext(*, type, channel)[source]¶
Bases:
BaseServerChannelCacheContextRepresents a cache context that involves an
BaseServerChannel, wishing to retrieve category the channel is in.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
MemberThroughServerChannelMeCacheContext¶
- class stoat.MemberThroughServerChannelMeCacheContext(*, type, channel)[source]¶
Bases:
BaseServerChannelCacheContextRepresents a cache context that involves an
BaseServerChannel, wishing to retrieve own member for the server the channel belongs to.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
ServerThroughServerChannelServerCacheContext¶
- class stoat.ServerThroughServerChannelServerCacheContext(*, type, channel)[source]¶
Bases:
BaseServerChannelCacheContextRepresents a cache context that involves an
BaseServerChannel, wishing to retrieve server the channel belongs to.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
MessageThroughTextChannelLastMessageCacheContext¶
- class stoat.MessageThroughTextChannelLastMessageCacheContext(*, type, channel)[source]¶
Bases:
TextChannelCacheContextRepresents a cache context that involves an
TextChannel, wishing to retrieve last text channel’s message.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughUserAddedSystemEventUserCacheContext¶
- class stoat.UserThroughUserAddedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserAddedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserAddedSystemEvent, wishing to retrieve system message’s user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
UserThroughUserRemovedSystemEventUserCacheContext¶
- class stoat.UserThroughUserRemovedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserRemovedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserRemovedSystemEvent, wishing to retrieve system message’s user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberOrUserThroughUserJoinedSystemEventUserCacheContext¶
- class stoat.MemberOrUserThroughUserJoinedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserJoinedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserJoinedSystemEvent, wishing to retrieve system message’s user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberThroughUserJoinedSystemEventUserCacheContext¶
- class stoat.MemberThroughUserJoinedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserJoinedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserJoinedSystemEvent, wishing to retrieve system message’s user as member.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
UserThroughUserJoinedSystemEventUserCacheContext¶
- class stoat.UserThroughUserJoinedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserJoinedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserJoinedSystemEvent, wishing to retrieve system message’s user as user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberOrUserThroughUserLeftSystemEventUserCacheContext¶
- class stoat.MemberOrUserThroughUserLeftSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserLeftSystemEventCacheContextRepresents a cache context that involves an
StatelessUserLeftSystemEvent, wishing to retrieve system message’s user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberThroughUserLeftSystemEventUserCacheContext¶
- class stoat.MemberThroughUserLeftSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserLeftSystemEventCacheContextRepresents a cache context that involves an
StatelessUserLeftSystemEvent, wishing to retrieve system message’s user as member.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
UserThroughUserLeftSystemEventUserCacheContext¶
- class stoat.UserThroughUserLeftSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserLeftSystemEventCacheContextRepresents a cache context that involves an
StatelessUserLeftSystemEvent, wishing to retrieve system message’s user as user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberOrUserThroughUserKickedSystemEventUserCacheContext¶
- class stoat.MemberOrUserThroughUserKickedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserKickedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserKickedSystemEvent, wishing to retrieve system message’s user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberThroughUserKickedSystemEventUserCacheContext¶
- class stoat.MemberThroughUserKickedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserKickedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserKickedSystemEvent, wishing to retrieve system message’s user as member.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
UserThroughUserKickedSystemEventUserCacheContext¶
- class stoat.UserThroughUserKickedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserKickedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserKickedSystemEvent, wishing to retrieve system message’s user as user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberOrUserThroughUserBannedSystemEventUserCacheContext¶
- class stoat.MemberOrUserThroughUserBannedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserBannedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserBannedSystemEvent, wishing to retrieve system message’s user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MemberThroughUserBannedSystemEventUserCacheContext¶
- class stoat.MemberThroughUserBannedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserBannedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserBannedSystemEvent, wishing to retrieve system message’s user as member.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
UserThroughUserBannedSystemEventUserCacheContext¶
- class stoat.UserThroughUserBannedSystemEventUserCacheContext(*, type, system_message)[source]¶
Bases:
UserBannedSystemEventCacheContextRepresents a cache context that involves an
StatelessUserBannedSystemEvent, wishing to retrieve system message’s user as user.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
UserThroughChannelOwnershipChangedSystemEventFromCacheContext¶
- class stoat.UserThroughChannelOwnershipChangedSystemEventFromCacheContext(*, type, system_message)[source]¶
Bases:
ChannelOwnershipChangedSystemEventCacheContextRepresents a cache context that involves an
StatelessChannelOwnershipChangedSystemEvent, wishing to retrieve system message’s old group owner.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
UserThroughChannelOwnershipChangedSystemEventToCacheContext¶
- class stoat.UserThroughChannelOwnershipChangedSystemEventToCacheContext(*, type, system_message)[source]¶
Bases:
ChannelOwnershipChangedSystemEventCacheContextRepresents a cache context that involves an
StatelessChannelOwnershipChangedSystemEvent, wishing to retrieve system message’s new group owner.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MessageThroughMessagePinnedSystemEventPinnedMessageCacheContext¶
- class stoat.MessageThroughMessagePinnedSystemEventPinnedMessageCacheContext(*, type, system_message)[source]¶
Bases:
MessagePinnedSystemEventCacheContextRepresents a cache context that involves an
StatelessMessagePinnedSystemEvent, wishing to retrieve system message’s pinned message.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
MessageThroughMessageUnpinnedSystemEventUnpinnedMessageCacheContext¶
- class stoat.MessageThroughMessageUnpinnedSystemEventUnpinnedMessageCacheContext(*, type, system_message)[source]¶
Bases:
MessageUnpinnedSystemEventCacheContextRepresents a cache context that involves an
StatelessMessageUnpinnedSystemEvent, wishing to retrieve system message’s pinned message.- system_message¶
The system message involved.
- type¶
The context’s type.
- Type:
ChannelThroughMessageChannelCacheContext¶
- class stoat.ChannelThroughMessageChannelCacheContext(*, type, message)[source]¶
Bases:
BaseMessageCacheContextRepresents a cache context that involves an
BaseMessage, wishing to retrieve message’s channel.- message¶
The message involved.
- Type:
- type¶
The context’s type.
- Type:
ServerThroughMessageServerCacheContext¶
- class stoat.ServerThroughMessageServerCacheContext(*, type, message)[source]¶
Bases:
BaseMessageCacheContextRepresents a cache context that involves an
BaseMessage, wishing to retrieve message’s server.- message¶
The message involved.
- Type:
- type¶
The context’s type.
- Type:
MemberOrUsersThroughMessageMentionsCacheContext¶
- class stoat.MemberOrUsersThroughMessageMentionsCacheContext(*, type, message)[source]¶
Bases:
MessageCacheContextRepresents a cache context that involves an
Message, wishing to retrieve message’s mentions as members or users.- type¶
The context’s type.
- Type:
MembersThroughMessageMentionsCacheContext¶
- class stoat.MembersThroughMessageMentionsCacheContext(*, type, message)[source]¶
Bases:
MessageCacheContextRepresents a cache context that involves an
Message, wishing to retrieve message’s mentions as members.- type¶
The context’s type.
- Type:
UsersThroughMessageMentionsCacheContext¶
- class stoat.UsersThroughMessageMentionsCacheContext(*, type, message)[source]¶
Bases:
MessageCacheContextRepresents a cache context that involves an
Message, wishing to retrieve message’s mentions as users.- type¶
The context’s type.
- Type:
RoleThroughMessageRoleMentionsCacheContext¶
- class stoat.RoleThroughMessageRoleMentionsCacheContext(*, type, message)[source]¶
Bases:
MessageCacheContextRepresents a cache context that involves an
Message, wishing to retrieve message’s role mentions.- type¶
The context’s type.
- Type:
ReadStateThroughTextChannelReadStateCacheContext¶
- class stoat.ReadStateThroughTextChannelReadStateCacheContext(*, type, channel)[source]¶
Bases:
TextChannelCacheContextRepresents a cache context that involves an
TextChannel, wishing to retrieve text channel’s read state.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
MembersThroughRoleMembersCacheContext¶
- class stoat.MembersThroughRoleMembersCacheContext(*, type, role)[source]¶
Bases:
BaseRoleCacheContextRepresents a cache context that involves an
BaseRole, wishing to retrieve server’s members.- type¶
The context’s type.
- Type:
ServerThroughRoleServerCacheContext¶
- class stoat.ServerThroughRoleServerCacheContext(*, type, role)[source]¶
Bases:
BaseRoleCacheContextRepresents a cache context that involves an
BaseRole, wishing to retrieve role’s server.- type¶
The context’s type.
- Type:
ChannelVoiceStateContainerThroughTextChannelVoiceStatesCacheContext¶
- class stoat.ChannelVoiceStateContainerThroughTextChannelVoiceStatesCacheContext(*, type, channel)[source]¶
Bases:
TextChannelCacheContextRepresents a cache context that involves an
TextChannel, wishing to retrieve channel’s voice states.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelVoiceStateContainerThroughVoiceChannelVoiceStatesCacheContext¶
- class stoat.ChannelVoiceStateContainerThroughVoiceChannelVoiceStatesCacheContext(*, type, channel)[source]¶
Bases:
VoiceChannelCacheContextRepresents a cache context that involves an
VoiceChannel, wishing to retrieve channel’s voice states.- channel¶
The channel involved.
- Type:
- type¶
The context’s type.
- Type:
MemberOrUserThroughServerEmojiCreatorCacheContext¶
- class stoat.MemberOrUserThroughServerEmojiCreatorCacheContext(*, type, emoji)[source]¶
Bases:
ServerEmojiCacheContextRepresents a cache context that involves an
ServerEmoji, wishing to retrieve emoji’s creator.- emoji¶
The emoji involved.
- Type:
- type¶
The context’s type.
- Type:
MemberThroughServerEmojiCreatorCacheContext¶
- class stoat.MemberThroughServerEmojiCreatorCacheContext(*, type, emoji)[source]¶
Bases:
ServerEmojiCacheContextRepresents a cache context that involves an
ServerEmoji, wishing to retrieve emoji’s creator as member.- emoji¶
The emoji involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughServerEmojiCreatorCacheContext¶
- class stoat.UserThroughServerEmojiCreatorCacheContext(*, type, emoji)[source]¶
Bases:
ServerEmojiCacheContextRepresents a cache context that involves an
ServerEmoji, wishing to retrieve emoji’s creator as user.- emoji¶
The emoji involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughDetachedEmojiCreatorCacheContext¶
- class stoat.UserThroughDetachedEmojiCreatorCacheContext(*, type, emoji)[source]¶
Bases:
DetachedEmojiCacheContextRepresents a cache context that involves an
DetachedEmoji, wishing to retrieve emoji’s creator.- emoji¶
The emoji involved.
- Type:
- type¶
The context’s type.
- Type:
ServerThroughServerEmojiServerCacheContext¶
- class stoat.ServerThroughServerEmojiServerCacheContext(*, type, emoji)[source]¶
Bases:
ServerEmojiCacheContextRepresents a cache context that involves an
ServerEmoji, wishing to retrieve emoji’s server.- emoji¶
The emoji involved.
- Type:
- type¶
The context’s type.
- Type:
ServerThroughServerPublicInviteServerCacheContext¶
- class stoat.ServerThroughServerPublicInviteServerCacheContext(*, type, invite)[source]¶
Bases:
ServerPublicInviteCacheContextRepresents a cache context that involves an
ServerPublicInvite, wishing to retrieve destination server.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelThroughServerPublicInviteChannelCacheContext¶
- class stoat.ChannelThroughServerPublicInviteChannelCacheContext(*, type, invite)[source]¶
Bases:
ServerPublicInviteCacheContextRepresents a cache context that involves an
ServerPublicInvite, wishing to retrieve destination channel.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughServerPublicInviteUserCacheContext¶
- class stoat.UserThroughServerPublicInviteUserCacheContext(*, type, invite)[source]¶
Bases:
ServerPublicInviteCacheContextRepresents a cache context that involves an
ServerPublicInvite, wishing to retrieve invite’s creator.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelThroughGroupPublicInviteChannelCacheContext¶
- class stoat.ChannelThroughGroupPublicInviteChannelCacheContext(*, type, invite)[source]¶
Bases:
GroupPublicInviteCacheContextRepresents a cache context that involves an
GroupPublicInvite, wishing to retrieve destination group channel.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughGroupPublicInviteUserCacheContext¶
- class stoat.UserThroughGroupPublicInviteUserCacheContext(*, type, invite)[source]¶
Bases:
GroupPublicInviteCacheContextRepresents a cache context that involves an
GroupPublicInvite, wishing to retrieve invite’s creator..- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelThroughGroupInviteChannelCacheContext¶
- class stoat.ChannelThroughGroupInviteChannelCacheContext(*, type, invite)[source]¶
Bases:
GroupInviteCacheContextRepresents a cache context that involves an
GroupInvite, wishing to retrieve destination group channel.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughGroupInviteCreatorCacheContext¶
- class stoat.UserThroughGroupInviteCreatorCacheContext(*, type, invite)[source]¶
Bases:
GroupInviteCacheContextRepresents a cache context that involves an
GroupInvite, wishing to retrieve invite’s creator.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
ServerThroughServerInviteServerCacheContext¶
- class stoat.ServerThroughServerInviteServerCacheContext(*, type, invite)[source]¶
Bases:
ServerInviteCacheContextRepresents a cache context that involves an
ServerInvite, wishing to retrieve destination server.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelThroughServerInviteChannelCacheContext¶
- class stoat.ChannelThroughServerInviteChannelCacheContext(*, type, invite)[source]¶
Bases:
ServerInviteCacheContextRepresents a cache context that involves an
ServerInvite, wishing to retrieve destination server channel.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
MemberOrUserThroughServerInviteCreatorCacheContext¶
- class stoat.MemberOrUserThroughServerInviteCreatorCacheContext(*, type, invite)[source]¶
Bases:
ServerInviteCacheContextRepresents a cache context that involves an
ServerInvite, wishing to retrieve invite’s creator.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
MemberThroughServerInviteCreatorCacheContext¶
- class stoat.MemberThroughServerInviteCreatorCacheContext(*, type, invite)[source]¶
Bases:
ServerInviteCacheContextRepresents a cache context that involves an
ServerInvite, wishing to retrieve invite’s creator.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughServerInviteCreatorCacheContext¶
- class stoat.UserThroughServerInviteCreatorCacheContext(*, type, invite)[source]¶
Bases:
ServerInviteCacheContextRepresents a cache context that involves an
ServerInvite, wishing to retrieve invite’s creator.- invite¶
The invite involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelThroughReadStateChannelCacheContext¶
- class stoat.ChannelThroughReadStateChannelCacheContext(*, type, read_state)[source]¶
Bases:
ReadStateCacheContextRepresents a cache context that involves an
ReadState, wishing to retrieve read state’s channel.- type¶
The context’s type.
- Type:
EmojiThroughServerGetterCacheContext¶
- class stoat.EmojiThroughServerGetterCacheContext(*, type, server)[source]¶
Bases:
BaseServerCacheContextRepresents a cache context that involves an
BaseServer, wishing to retrieve server emoji.- server¶
The server involved.
- Type:
- type¶
The context’s type.
- Type:
MemberThroughServerGetterCacheContext¶
- class stoat.MemberThroughServerGetterCacheContext(*, type, server)[source]¶
Bases:
BaseServerCacheContextRepresents a cache context that involves an
BaseServer, wishing to retrieve server member.- server¶
The server involved.
- Type:
- type¶
The context’s type.
- Type:
EmojisThroughServerGetterCacheContext¶
- class stoat.EmojisThroughServerGetterCacheContext(*, type, server)[source]¶
Bases:
BaseServerCacheContextRepresents a cache context that involves an
BaseServer, wishing to retrieve server’s emojis.- server¶
The server involved.
- Type:
- type¶
The context’s type.
- Type:
MembersThroughServerGetterCacheContext¶
- class stoat.MembersThroughServerGetterCacheContext(*, type, server)[source]¶
Bases:
BaseServerCacheContextRepresents a cache context that involves an
BaseServer, wishing to retrieve server’s members.- server¶
The server involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelThroughServerGetterCacheContext¶
- class stoat.ChannelThroughServerGetterCacheContext(*, type, server)[source]¶
Bases:
BaseServerCacheContextRepresents a cache context that involves an
BaseServer, wishing to retrieve server channel.- server¶
The server involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelsThroughServerGetterCacheContext¶
- class stoat.ChannelsThroughServerGetterCacheContext(*, type, server)[source]¶
Bases:
BaseServerCacheContextRepresents a cache context that involves an
BaseServer, wishing to retrieve server’s channels.- server¶
The server involved.
- Type:
- type¶
The context’s type.
- Type:
MemberThroughServerMeCacheContext¶
- class stoat.MemberThroughServerMeCacheContext(*, type, server)[source]¶
Bases:
BaseServerCacheContextRepresents a cache context that involves an
BaseServer, wishing to retrieve own member for server.- server¶
The server involved.
- Type:
- type¶
The context’s type.
- Type:
MemberOrUserThroughServerOwnerCacheContext¶
- class stoat.MemberOrUserThroughServerOwnerCacheContext(*, type, server)[source]¶
Bases:
ServerCacheContextRepresents a cache context that involves an
Server, wishing to retrieve server’s owner.- type¶
The context’s type.
- Type:
MemberThroughServerOwnerCacheContext¶
- class stoat.MemberThroughServerOwnerCacheContext(*, type, server)[source]¶
Bases:
ServerCacheContextRepresents a cache context that involves an
Server, wishing to retrieve server’s owner as member.- type¶
The context’s type.
- Type:
UserThroughServerOwnerCacheContext¶
- class stoat.UserThroughServerOwnerCacheContext(*, type, server)[source]¶
Bases:
ServerCacheContextRepresents a cache context that involves an
Server, wishing to retrieve server’s owner as user.- type¶
The context’s type.
- Type:
ServerThroughMemberServerCacheContext¶
- class stoat.ServerThroughMemberServerCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s server.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberUserCacheContext¶
- class stoat.UserThroughMemberUserCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s user.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberBotOwnerCacheContext¶
- class stoat.UserThroughMemberBotOwnerCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s bot owner.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelIDThroughMemberDMChannelIDCacheContext¶
- class stoat.ChannelIDThroughMemberDMChannelIDCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s DM channel ID.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
ChannelThroughMemberDMChannelCacheContext¶
- class stoat.ChannelThroughMemberDMChannelCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s DM channel.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberNameCacheContext¶
- class stoat.UserThroughMemberNameCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s name.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberDiscriminatorCacheContext¶
- class stoat.UserThroughMemberDiscriminatorCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s discriminator.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberDisplayNameCacheContext¶
- class stoat.UserThroughMemberDisplayNameCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s display name.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberInternalAvatarCacheContext¶
- class stoat.UserThroughMemberInternalAvatarCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s stateless avatar.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberRawBadgesCacheContext¶
- class stoat.UserThroughMemberRawBadgesCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s raw badges value.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberStatusCacheContext¶
- class stoat.UserThroughMemberStatusCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s status.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberRawFlagsCacheContext¶
- class stoat.UserThroughMemberRawFlagsCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s raw flags value.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberPrivilegedCacheContext¶
- class stoat.UserThroughMemberPrivilegedCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s privileged.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberBotCacheContext¶
- class stoat.UserThroughMemberBotCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s user bot-specific metadata.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberRelationshipCacheContext¶
- class stoat.UserThroughMemberRelationshipCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s relationship.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberOnlineCacheContext¶
- class stoat.UserThroughMemberOnlineCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s online status.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
UserThroughMemberTagCacheContext¶
- class stoat.UserThroughMemberTagCacheContext(*, type, member)[source]¶
Bases:
BaseMemberCacheContextRepresents a cache context that involves an
BaseMember, wishing to retrieve member’s tag.- member¶
The member involved.
- Type:
- type¶
The context’s type.
- Type:
ServerThroughMemberRolesCacheContext¶
- class stoat.ServerThroughMemberRolesCacheContext(*, type, member)[source]¶
Bases:
MemberCacheContextRepresents a cache context that involves an
Member, wishing to retrieve member’s roles.- type¶
The context’s type.
- Type:
ServerThroughMemberServerPermissionsCacheContext¶
- class stoat.ServerThroughMemberServerPermissionsCacheContext(*, type, member)[source]¶
Bases:
MemberCacheContextRepresents a cache context that involves an
Member, wishing to retrieve member’s permissions.- type¶
The context’s type.
- Type:
ServerThroughMemberTopRoleCacheContext¶
- class stoat.ServerThroughMemberTopRoleCacheContext(*, type, member)[source]¶
Bases:
MemberCacheContextRepresents a cache context that involves an
Member, wishing to retrieve member’s top role.- type¶
The context’s type.
- Type:
UserThroughUserBotOwnerCacheContext¶
- class stoat.UserThroughUserBotOwnerCacheContext(*, type, user)[source]¶
Bases:
UserCacheContextRepresents a cache context that involves an
User, wishing to retrieve owner of bot user.- type¶
The context’s type.
- Type:
ChannelIDThroughUserDMChannelIDCacheContext¶
- class stoat.ChannelIDThroughUserDMChannelIDCacheContext(*, type, user)[source]¶
Bases:
BaseUserCacheContextRepresents a cache context that involves an
BaseUser, wishing to retrieve ID of the DM channel with this user.- type¶
The context’s type.
- Type:
ChannelThroughUserDMChannelIDCacheContext¶
- class stoat.ChannelThroughUserDMChannelIDCacheContext(*, type, user)[source]¶
Bases:
BaseUserCacheContextRepresents a cache context that involves an
BaseUser, wishing to retrieve the DM channel with this user.- type¶
The context’s type.
- Type:
MemberOrUserThroughWebhookCreatorCacheContext¶
- class stoat.MemberOrUserThroughWebhookCreatorCacheContext(*, type, webhook)[source]¶
Bases:
WebhookCacheContextRepresents a cache context that involves an
Webhook, wishing to retrieve webhook’s creator.- type¶
The context’s type.
- Type:
MemberThroughWebhookCreatorCacheContext¶
- class stoat.MemberThroughWebhookCreatorCacheContext(*, type, webhook)[source]¶
Bases:
WebhookCacheContextRepresents a cache context that involves an
Webhook, wishing to retrieve webhook’s creator as member.- type¶
The context’s type.
- Type:
UserThroughWebhookCreatorCacheContext¶
- class stoat.UserThroughWebhookCreatorCacheContext(*, type, webhook)[source]¶
Bases:
WebhookCacheContextRepresents a cache context that involves an
Webhook, wishing to retrieve webhook’s creator as user.- type¶
The context’s type.
- Type:
ChannelThroughWebhookChannelCacheContext¶
- class stoat.ChannelThroughWebhookChannelCacheContext(*, type, webhook)[source]¶
Bases:
WebhookCacheContextRepresents a cache context that involves an
Webhook, wishing to retrieve webhook’s channel.- type¶
The context’s type.
- Type: