Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data structures pertaining to Discord Channels
Synopsis
- data User
- data Channel
- = ChannelText { }
- | ChannelVoice { }
- | ChannelDirectMessage { }
- | ChannelGroupDM { }
- | ChannelGuildCategory { }
- channelIsInGuild :: Channel -> Bool
- data Overwrite = Overwrite {}
- data Message = Message {
- messageId :: Snowflake
- messageChannel :: Snowflake
- messageAuthor :: User
- messageText :: Text
- messageTimestamp :: UTCTime
- messageEdited :: Maybe UTCTime
- messageTts :: Bool
- messageEveryone :: Bool
- messageMentions :: [User]
- messageMentionRoles :: [Snowflake]
- messageAttachments :: [Attachment]
- messageEmbeds :: [Embed]
- messageNonce :: Maybe Snowflake
- messagePinned :: Bool
- messageGuild :: Maybe Snowflake
- data Attachment = Attachment {}
- data Embed = Embed {
- embedTitle :: String
- embedType :: String
- embedDesc :: String
- embedUrl :: String
- embedTime :: UTCTime
- embedColor :: Integer
- embedFields :: [SubEmbed]
- data SubEmbed
Documentation
Represents information about a user.
User | |
| |
Webhook |
Guild channels represent an isolated set of users and messages in a Guild (Server)
ChannelText | A text channel in a guild. |
| |
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 Attachment Source #
Represents an attached to a message file.
Attachment | |
|
Instances
Eq Attachment Source # | |
Defined in Discord.Types.Channel (==) :: Attachment -> Attachment -> Bool # (/=) :: Attachment -> Attachment -> Bool # | |
Show Attachment Source # | |
Defined in Discord.Types.Channel showsPrec :: Int -> Attachment -> ShowS # show :: Attachment -> String # showList :: [Attachment] -> ShowS # | |
FromJSON Attachment Source # | |
Defined in Discord.Types.Channel parseJSON :: Value -> Parser Attachment # parseJSONList :: Value -> Parser [Attachment] # |
An embed attached to a message.
Embed | |
|
Represents a part of an embed.