Interface ChannelAccessContext
- All Superinterfaces:
AccessContext
- All Known Subinterfaces:
CommandContext,InstrumentedContext,InteractionCommandContext,LazyContext,MessageCommandContext,SlashCommandContext
- All Known Implementing Classes:
MessageContextImpl
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.modular_commands.api.command.context.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.
-