Safe Haskell | Safe-Inferred |
---|---|
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
FromJSON InteractionType Source # | |
Defined in Calamity.Types.Model.Interaction parseJSON :: Value -> Parser InteractionType # parseJSONList :: Value -> Parser [InteractionType] # | |
Show InteractionType Source # | |
Defined in Calamity.Types.Model.Interaction showsPrec :: Int -> InteractionType -> ShowS # show :: InteractionType -> String # showList :: [InteractionType] -> ShowS # | |
Eq InteractionType Source # | |
Defined in Calamity.Types.Model.Interaction (==) :: InteractionType -> InteractionType -> Bool # (/=) :: InteractionType -> InteractionType -> Bool # | |
TextShow InteractionType Source # | |
Defined in Calamity.Types.Model.Interaction showbPrec :: Int -> InteractionType -> Builder # showb :: InteractionType -> Builder # showbList :: [InteractionType] -> Builder # showtPrec :: Int -> InteractionType -> Text # showt :: InteractionType -> Text # showtList :: [InteractionType] -> Text # showtlPrec :: Int -> InteractionType -> Text # showtl :: InteractionType -> Text # showtlList :: [InteractionType] -> Text # |
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