Interface InteractionCommandContext

All Superinterfaces:
dev.sympho.bot_utils.access.AccessContext, dev.sympho.bot_utils.access.AccessValidator, dev.sympho.bot_utils.access.ChannelAccessContext, dev.sympho.bot_utils.access.ChannelAccessValidator, dev.sympho.bot_utils.event.ChannelEventContext, CommandContext, dev.sympho.bot_utils.event.EventContext, dev.sympho.bot_utils.event.InteractionEventContext, dev.sympho.bot_utils.event.RepliableContext
All Known Subinterfaces:
SlashCommandContext

public interface InteractionCommandContext extends CommandContext, dev.sympho.bot_utils.event.InteractionEventContext
The execution context of an command invoked through an interaction (application command).
Since:
1.0
Version:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the user that called the command as a guild member as provided by the triggering event, if present.
     
    default Mono<Member>
     
    default Mono<Member>
    member(Snowflake guildId)
     

    Methods inherited from interface dev.sympho.bot_utils.access.AccessContext

    asGuild, isPrivate

    Methods inherited from interface dev.sympho.bot_utils.access.ChannelAccessContext

    asUser

    Methods inherited from interface dev.sympho.bot_utils.event.ChannelEventContext

    belongs, belongs, belongs, belongs, hasAccess, hasAccess, validate, validator

    Methods inherited from interface dev.sympho.bot_utils.event.EventContext

    client, validate

    Methods inherited from interface dev.sympho.bot_utils.event.InteractionEventContext

    channelId, event, guild, guildId, interaction, user

    Methods inherited from interface dev.sympho.bot_utils.event.RepliableContext

    replies, reply, reply, reply, reply, reply, reply, reply
  • Method Details

    • channel

      default Mono<MessageChannel> channel()
      Specified by:
      channel in interface dev.sympho.bot_utils.access.ChannelAccessContext
      Specified by:
      channel in interface CommandContext
      Specified by:
      channel in interface dev.sympho.bot_utils.event.InteractionEventContext
    • member

      default Mono<Member> member()
      Specified by:
      member in interface dev.sympho.bot_utils.access.AccessContext
      Specified by:
      member in interface CommandContext
      Specified by:
      member in interface dev.sympho.bot_utils.event.InteractionEventContext
      See Also:
    • member

      default Mono<Member> member(Snowflake guildId)
      Specified by:
      member in interface dev.sympho.bot_utils.access.AccessContext
      Specified by:
      member in interface CommandContext
      Specified by:
      member in interface dev.sympho.bot_utils.event.InteractionEventContext
      See Also:
    • callerMember

      default @Nullable Member callerMember()
      Description copied from interface: CommandContext
      Retrieves the user that called the command as a guild member as provided by the triggering event, if present.
      Specified by:
      callerMember in interface CommandContext
      Returns:
      The calling user as a guild member, or null if the command was invoked in a private channel.