c

ackcord.interactions.commands

CacheApplicationCommandController

class CacheApplicationCommandController extends ApplicationCommandControllerBase[ResolvedCommandInteraction]

An application command controller that adds cache info the the interactions. Requires using the gateway to respond to interactions.

Source
CacheApplicationCommandController.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CacheApplicationCommandController
  2. ApplicationCommandControllerBase
  3. InteractionHandlerOps
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CacheApplicationCommandController(requests: requests.Requests)

Value Members

  1. val GuildCommand: SlashCommandBuilder[GuildCommandInteraction, NotUsed]

    A slash command builder that ensures that the interaction happens in a guild, and exposes info about this guild.

  2. val GuildVoiceCommand: SlashCommandBuilder[VoiceChannelCommandInteraction, NotUsed]

    A slash command builder that ensures that the user executing the interaction is in a voice channel.

  3. def MessageCommand: MessageCommandBuilder[ResolvedCommandInteraction]

    A builder to start making a new message command.

    A builder to start making a new message command.

    Definition Classes
    ApplicationCommandControllerBase
  4. def SlashCommand: SlashCommandBuilder[ResolvedCommandInteraction, NotUsed]

    A builder to start making a new slash command.

    A builder to start making a new slash command.

    Definition Classes
    ApplicationCommandControllerBase
  5. def UserCommand: UserCommandBuilder[ResolvedCommandInteraction]

    A builder to start making a new user command.

    A builder to start making a new user command.

    Definition Classes
    ApplicationCommandControllerBase
  6. def async(handle: (AsyncToken) => OptFuture[_])(implicit interaction: Interaction): InteractionResponse

    Specify that the response to this interaction will be done async.

    Specify that the response to this interaction will be done async.

    handle

    The action to do async.

    Definition Classes
    InteractionHandlerOps
  7. def bool(name: String, description: String): ValueParam[Boolean, Boolean, Id]

    Create an boolean parameter.

    Create an boolean parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  8. def channel(name: String, description: String, channelTypes: Seq[ChannelType] = Nil): ValueParam[TextGuildChannelId, InteractionChannel, Id]

    Create a channel parameter.

    Create a channel parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    channelTypes

    The channel types to allow users to mention.

    Definition Classes
    ApplicationCommandControllerBase
  9. def channelUnresolved(name: String, description: String, channelTypes: Seq[ChannelType] = Nil): ValueParam[TextGuildChannelId, TextGuildChannelId, Id]

    Create an unresolved channel parameter.

    Create an unresolved channel parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    channelTypes

    The channel types to allow users to mention.

    Definition Classes
    ApplicationCommandControllerBase
  10. val defaultInteractionTransformer: DataInteractionTransformer[CommandInteraction, ResolvedCommandInteraction]

    The interaction transformer to start off with.

    The interaction transformer to start off with.

    Definition Classes
    CacheApplicationCommandControllerApplicationCommandControllerBase
  11. def deleteOriginalMessage(implicit async: AsyncMessageToken): OptFuture[NotUsed]

    Delete the original message sent as a response to the interaction.

    Delete the original message sent as a response to the interaction.

    Definition Classes
    InteractionHandlerOps
  12. def editOriginalMessage(content: util.JsonOption[String] = JsonUndefined, embeds: util.JsonOption[Seq[OutgoingEmbed]] = JsonUndefined, files: util.JsonOption[Seq[CreateMessageFile]] = JsonUndefined, allowedMentions: util.JsonOption[AllowedMention] = JsonUndefined, components: util.JsonOption[Seq[ActionRow]] = JsonUndefined)(implicit async: AsyncMessageToken): OptFuture[Json]

    Edits the original message sent as a response to the interaction.

    Edits the original message sent as a response to the interaction.

    content

    The content of the message.

    embeds

    The embeds of the message.

    files

    The files of the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  13. def editPreviousMessage(messageId: MessageId, content: util.JsonOption[String] = JsonUndefined, embeds: util.JsonOption[Seq[OutgoingEmbed]] = JsonUndefined, files: util.JsonOption[Seq[CreateMessageFile]] = JsonUndefined, allowedMentions: util.JsonOption[AllowedMention] = JsonUndefined, components: util.JsonOption[Seq[ActionRow]] = JsonUndefined)(implicit async: AsyncToken): OptFuture[Json]

    Edits a previous message sent as a part of the interaction.

    Edits a previous message sent as a part of the interaction.

    messageId

    The message to edit.

    content

    The content of the message.

    embeds

    The embeds of the message.

    files

    The files of the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  14. implicit def executionContext: ExecutionContext
    Definition Classes
    InteractionHandlerOps
  15. implicit def findCache[A](implicit message: CacheInteraction): CacheSnapshot
  16. def getOriginalMessage()(implicit async: AsyncMessageToken): OptFuture[Message]

    Get the original message sent as a response to the interaction.

    Get the original message sent as a response to the interaction.

    Definition Classes
    InteractionHandlerOps
  17. def getPreviousMessage(messageId: MessageId)(implicit async: AsyncMessageToken): OptFuture[Message]

    Get a previous message sent as a part of the interaction.

    Get a previous message sent as a part of the interaction.

    messageId

    The message to get.

    Definition Classes
    InteractionHandlerOps
  18. def int(name: String, description: String, minValue: Option[Int] = None, maxValue: Option[Int] = None): ChoiceParam[Int, Int, Id]

    Create an integer parameter.

    Create an integer parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    minValue

    The minimum value of the parameter.

    maxValue

    The maximum value of the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  19. def mentionable(name: String, description: String): ValueParam[UserOrRoleId, Either[InteractionGuildMember, RawRole], Id]

    Create a mentionable parameter.

    Create a mentionable parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  20. def mentionableUnresolved(name: String, description: String): ValueParam[UserOrRoleId, UserOrRoleId, Id]

    Create an unresolved mentionable parameter.

    Create an unresolved mentionable parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  21. def number(name: String, description: String, minValue: Option[Double] = None, maxValue: Option[Double] = None): ChoiceParam[Double, Double, Id]

    Create a number parameter.

    Create a number parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    minValue

    The minimum value of the parameter.

    maxValue

    The maximum value of the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  22. val requests: requests.Requests
  23. def role(name: String, description: String): ValueParam[RoleId, RawRole, Id]

    Create a role parameter.

    Create a role parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  24. def roleUnresolved(name: String, description: String): ValueParam[RoleId, RoleId, Id]

    Create an unresolved role parameter.

    Create an unresolved role parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  25. def sendAsyncEmbed(embeds: Seq[OutgoingEmbed], content: String = "", tts: Option[Boolean] = None, files: Seq[CreateMessageFile] = Seq.empty, allowedMentions: Option[AllowedMention] = None, components: Seq[ActionRow] = Nil)(implicit async: AsyncToken): OptFuture[RawMessage]

    Send an async message as part of the interaction with embeds as the primary thing.

    Send an async message as part of the interaction with embeds as the primary thing.

    embeds

    The embeds of the message.

    content

    The content of the message.

    tts

    If the message will be tts.

    files

    The files to send with the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  26. def sendAsyncMessage(content: String, tts: Option[Boolean] = None, files: Seq[CreateMessageFile] = Seq.empty, embeds: Seq[OutgoingEmbed] = Nil, allowedMentions: Option[AllowedMention] = None, components: Seq[ActionRow] = Nil)(implicit async: AsyncToken): OptFuture[RawMessage]

    Send an async message as part of the interaction with text content as the primary thing.

    Send an async message as part of the interaction with text content as the primary thing.

    content

    The content of the message.

    tts

    If the message will be tts.

    files

    The files to send with the message.

    embeds

    The embeds of the message.

    allowedMentions

    The allowed mentions of the message.

    components

    The components of the message.

    Definition Classes
    InteractionHandlerOps
  27. def sendEmbed(embeds: Seq[OutgoingEmbed], content: Option[String] = None, tts: Option[Boolean] = None, allowedMentions: Option[AllowedMention] = None, flags: MessageFlags = MessageFlags.None, components: Seq[ActionRow] = Nil, attachments: Option[Seq[PartialAttachment]] = None): AsyncMessageable

    Send a message as response to the interaction with embeds as the primary thing.

    Send a message as response to the interaction with embeds as the primary thing.

    embeds

    The embeds of the message.

    content

    The content of the message.

    tts

    If the message will be tts.

    allowedMentions

    The allowed mentions of the message.

    flags

    The flags of the message.

    components

    The components of the message. // * @param attachments The attachments of the message. Not currently implemented.

    Definition Classes
    InteractionHandlerOps
  28. def sendMessage(content: String, tts: Option[Boolean] = None, embeds: Seq[OutgoingEmbed] = Nil, allowedMentions: Option[AllowedMention] = None, flags: MessageFlags = MessageFlags.None, components: Seq[ActionRow] = Nil): AsyncMessageable

    Send a message as response to the interaction with text content as the primary thing.

    Send a message as response to the interaction with text content as the primary thing.

    content

    The content of the message.

    tts

    If the message will be tts.

    embeds

    The embeds of the message.

    allowedMentions

    The allowed mentions of the message.

    flags

    The flags of the message.

    components

    The components of the message. // * @param attachments The attachments of the message. Not currently implemented.

    Definition Classes
    InteractionHandlerOps
  29. def string(name: String, description: String): ChoiceParam[String, String, Id]

    Create a string parameter.

    Create a string parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  30. def user(name: String, description: String): ValueParam[UserId, InteractionGuildMember, Id]

    Create an user parameter.

    Create an user parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase
  31. def userUnresolved(name: String, description: String): ValueParam[UserId, UserId, Id]

    Create an unresolved user parameter.

    Create an unresolved user parameter.

    name

    The name of the parameter.

    description

    A description for the parameter.

    Definition Classes
    ApplicationCommandControllerBase