Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data structures pertaining to Discord Channels
Synopsis
- data User = User {}
- data Webhook = Webhook {}
- data ConnectionObject = ConnectionObject {
- connectionObjectId :: Text
- connectionObjectName :: Text
- connectionObjectType :: Text
- connectionObjectRevoked :: Bool
- connectionObjectIntegrations :: [IntegrationId]
- connectionObjectVerified :: Bool
- connectionObjectFriendSyncOn :: Bool
- connectionObjectShownInPresenceUpdates :: Bool
- connectionObjectVisibleToOthers :: Bool
- data Channel
- = ChannelText { }
- | 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]
- messageNonce :: Maybe Snowflake
- messagePinned :: Bool
- messageGuild :: Maybe GuildId
- data Attachment = Attachment {}
- data Embed = Embed {}
- data SubEmbed
Documentation
Represents information about a user.
User | |
|
data ConnectionObject Source #
Instances
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.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] # |
An embed attached to a message.
Embed | |
|
Represents a part of an embed.
Thumbnail Text Text Integer Integer | |
Video Text Integer Integer | |
Image Text Text Integer Integer | |
Provider Text Text | |
Author Text Text Text Text | |
Footer Text Text Text | |
Field Text Text Bool |