Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data structures pertaining to Discord Channels
Synopsis
- data Channel
- = ChannelText { }
- | ChannelNews { }
- | ChannelStorePage { }
- | ChannelVoice { }
- | ChannelDirectMessage { }
- | ChannelGroupDM { }
- | ChannelGuildCategory { }
- channelIsInGuild :: Channel -> Bool
- data Overwrite = Overwrite {}
- data Message = Message {
- messageId :: MessageId
- messageChannel :: ChannelId
- messageAuthor :: User
- messageText :: Text
- messageTimestamp :: UTCTime
- messageEdited :: Maybe UTCTime
- messageTts :: Bool
- messageEveryone :: Bool
- messageMentions :: [User]
- messageMentionRoles :: [RoleId]
- messageAttachments :: [Attachment]
- messageEmbeds :: [Embed]
- messageReactions :: [MessageReaction]
- messageNonce :: Maybe Nonce
- messagePinned :: Bool
- messageGuild :: Maybe GuildId
- data MessageReaction = MessageReaction {}
- data Emoji = Emoji {}
- data Attachment = Attachment {}
- newtype Nonce = Nonce Text
Documentation
Guild channels represent an isolated set of users and messages in a Guild (Server)
ChannelText | A text channel in a guild. |
| |
ChannelNews | |
| |
ChannelStorePage | |
| |
ChannelVoice | A voice channel in a guild. |
| |
ChannelDirectMessage | DM Channels represent a one-to-one conversation between two users, outside the scope of guilds |
| |
ChannelGroupDM | |
| |
ChannelGuildCategory | |
|
channelIsInGuild :: Channel -> Bool Source #
If the channel is part of a guild (has a guild id field)
Permission overwrites for a channel.
Overwrite | |
|
Represents information about a message in a Discord channel.
Message | |
|
data MessageReaction Source #
Instances
Represents an emoticon (emoji)
data Attachment Source #
Represents an attached to a message file.
Attachment | |
|
Instances
Eq Attachment Source # | |
Defined in Discord.Internal.Types.Channel (==) :: Attachment -> Attachment -> Bool # (/=) :: Attachment -> Attachment -> Bool # | |
Ord Attachment Source # | |
Defined in Discord.Internal.Types.Channel compare :: Attachment -> Attachment -> Ordering # (<) :: Attachment -> Attachment -> Bool # (<=) :: Attachment -> Attachment -> Bool # (>) :: Attachment -> Attachment -> Bool # (>=) :: Attachment -> Attachment -> Bool # max :: Attachment -> Attachment -> Attachment # min :: Attachment -> Attachment -> Attachment # | |
Show Attachment Source # | |
Defined in Discord.Internal.Types.Channel showsPrec :: Int -> Attachment -> ShowS # show :: Attachment -> String # showList :: [Attachment] -> ShowS # | |
FromJSON Attachment Source # | |
Defined in Discord.Internal.Types.Channel parseJSON :: Value -> Parser Attachment # parseJSONList :: Value -> Parser [Attachment] # |