Package dev.sympho.bot_utils.access
Interface ChannelAccessContext
- All Superinterfaces:
AccessContext
- All Known Implementing Classes:
ButtonManager.ButtonContext,ComponentManager.ComponentContext,ModalManager.ModalContext
Access context that is specific to a channel.
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault ChannelAccessContextCreates a copy of this context with the user replaced by the given user.Retrieves the channel.Retrieves the ID of the channel.Methods inherited from interface dev.sympho.bot_utils.access.AccessContext
asGuild, getClient, getGuild, getGuildId, getMember, getMember, getUser, isPrivate
-
Method Details
-
getChannel
Retrieves the channel.- Returns:
- The channel.
-
getChannelId
Retrieves the ID of the channel.- Returns:
- The channel's ID.
-
asUser
Creates a copy of this context with the user replaced by the given user.All associated values are also replaced accordingly.
- Specified by:
asUserin interfaceAccessContext- Parameters:
user- The target user.- Returns:
- The new context.
-