Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides actions for Channel API interactions
Synopsis
- data ChannelRequest a where
- GetChannel :: ChannelId -> ChannelRequest Channel
- ModifyChannel :: ChannelId -> ModifyChannelOpts -> ChannelRequest Channel
- DeleteChannel :: ChannelId -> ChannelRequest Channel
- GetChannelMessages :: ChannelId -> (Int, MessageTiming) -> ChannelRequest [Message]
- GetChannelMessage :: (ChannelId, MessageId) -> ChannelRequest Message
- CreateMessage :: ChannelId -> Text -> ChannelRequest Message
- CreateMessageEmbed :: ChannelId -> Text -> Embed -> ChannelRequest Message
- CreateMessageUploadFile :: ChannelId -> Text -> ByteString -> ChannelRequest Message
- CreateReaction :: (ChannelId, MessageId) -> Text -> ChannelRequest ()
- DeleteOwnReaction :: (ChannelId, MessageId) -> Text -> ChannelRequest ()
- DeleteUserReaction :: (ChannelId, MessageId) -> UserId -> Text -> ChannelRequest ()
- GetReactions :: (ChannelId, MessageId) -> Text -> (Int, ReactionTiming) -> ChannelRequest ()
- DeleteAllReactions :: (ChannelId, MessageId) -> ChannelRequest ()
- EditMessage :: (ChannelId, MessageId) -> Text -> Maybe Embed -> ChannelRequest Message
- DeleteMessage :: (ChannelId, MessageId) -> ChannelRequest ()
- BulkDeleteMessage :: (ChannelId, [MessageId]) -> ChannelRequest ()
- EditChannelPermissions :: ChannelId -> OverwriteId -> ChannelPermissionsOpts -> ChannelRequest ()
- GetChannelInvites :: ChannelId -> ChannelRequest Object
- CreateChannelInvite :: ChannelId -> ChannelInviteOpts -> ChannelRequest Invite
- DeleteChannelPermission :: ChannelId -> OverwriteId -> ChannelRequest ()
- TriggerTypingIndicator :: ChannelId -> ChannelRequest ()
- GetPinnedMessages :: ChannelId -> ChannelRequest [Message]
- AddPinnedMessage :: (ChannelId, MessageId) -> ChannelRequest ()
- DeletePinnedMessage :: (ChannelId, MessageId) -> ChannelRequest ()
- GroupDMAddRecipient :: ChannelId -> GroupDMAddRecipientOpts -> ChannelRequest ()
- GroupDMRemoveRecipient :: ChannelId -> UserId -> ChannelRequest ()
- data ReactionTiming
- data MessageTiming
- data ChannelInviteOpts = ChannelInviteOpts {}
- data ModifyChannelOpts = ModifyChannelOpts {
- modifyChannelName :: Maybe String
- modifyChannelPosition :: Maybe Integer
- modifyChannelTopic :: Maybe String
- modifyChannelNSFW :: Maybe Bool
- modifyChannelBitrate :: Maybe Integer
- modifyChannelUserRateLimit :: Maybe Integer
- modifyChannelPermissionOverwrites :: Maybe [Overwrite]
- modifyChannelParentId :: Maybe ChannelId
- data ChannelPermissionsOpts = ChannelPermissionsOpts {}
- data GroupDMAddRecipientOpts = GroupDMAddRecipientOpts {}
- data ChannelPermissionsOptsType
Documentation
data ChannelRequest a where Source #
Data constructor for requests. See API
Instances
Request (ChannelRequest a) Source # | |
Defined in Discord.Rest.Channel majorRoute :: ChannelRequest a -> String Source # jsonRequest :: ChannelRequest a -> JsonRequest Source # |
data ReactionTiming Source #
Data constructor for GetReaction requests
data MessageTiming Source #
Data constructor for GetChannelMessages requests. See https://discordapp.com/developers/docs/resources/channel#get-channel-messages
data ChannelInviteOpts Source #
Instances
ToJSON ChannelInviteOpts Source # | |
Defined in Discord.Rest.Channel toJSON :: ChannelInviteOpts -> Value # toEncoding :: ChannelInviteOpts -> Encoding # toJSONList :: [ChannelInviteOpts] -> Value # toEncodingList :: [ChannelInviteOpts] -> Encoding # |
data ModifyChannelOpts Source #
Instances
ToJSON ModifyChannelOpts Source # | |
Defined in Discord.Rest.Channel toJSON :: ModifyChannelOpts -> Value # toEncoding :: ModifyChannelOpts -> Encoding # toJSONList :: [ModifyChannelOpts] -> Value # toEncodingList :: [ModifyChannelOpts] -> Encoding # |
data ChannelPermissionsOpts Source #
Instances
ToJSON ChannelPermissionsOpts Source # | |
Defined in Discord.Rest.Channel toJSON :: ChannelPermissionsOpts -> Value # toEncoding :: ChannelPermissionsOpts -> Encoding # toJSONList :: [ChannelPermissionsOpts] -> Value # |
data ChannelPermissionsOptsType Source #
Instances
ToJSON ChannelPermissionsOptsType Source # | |
Defined in Discord.Rest.Channel |