Safe Haskell | None |
---|---|
Language | Haskell2010 |
Discord Interactions
Synopsis
- data Interaction = Interaction {
- id :: Snowflake Interaction
- applicationID :: Snowflake Application
- type_ :: InteractionType
- data_ :: Maybe InteractionData
- guildID :: Maybe (Snowflake Guild)
- channelID :: Maybe (Snowflake Channel)
- member :: Maybe Member
- user :: Maybe User
- token :: InteractionToken
- version :: Int
- message :: Maybe Message
- locale :: Maybe Text
- guildLocale :: Maybe Text
- newtype InteractionToken = InteractionToken {}
- data InteractionData = InteractionData {
- id :: Maybe (Snowflake ApplicationCommand)
- name :: Maybe Text
- resolved :: Maybe ResolvedInteractionData
- customID :: Maybe CustomID
- componentType :: Maybe ComponentType
- values :: Maybe [Text]
- targetID :: Maybe (Snowflake ())
- components :: Maybe [Value]
- data ResolvedInteractionData = ResolvedInteractionData {}
- data InteractionType
- data Application
- data ApplicationCommand
Documentation
data Interaction Source #
Interaction | |
|
Instances
newtype InteractionToken Source #
Instances
data InteractionData Source #
InteractionData | |
|
Instances
data ResolvedInteractionData Source #
Instances
data InteractionType Source #
PingType | |
ApplicationCommandType | |
MessageComponentType | |
ApplicationCommandAutoCompleteType | |
ModalSubmitType |
Instances
data Application Source #
Empty type to flag application IDs
Instances
HasID Application Interaction Source # | |
Defined in Calamity.Types.Model.Interaction getID :: Interaction -> Snowflake Application Source # |
data ApplicationCommand Source #
Empty type to flag application command IDs