| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Discord.Internal.Types.Channel
Description
Data structures pertaining to Discord Channels
Synopsis
- data Channel
- = ChannelText { }
- | ChannelNews { }
- | ChannelStorePage { }
- | ChannelVoice { }
- | ChannelDirectMessage { }
- | ChannelGroupDM { }
- | ChannelGuildCategory { }
- | ChannelStage { }
- | ChannelUnknownType { }
- 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
- messageReference :: Maybe MessageReference
- referencedMessage :: Maybe Message
- data MessageReaction = MessageReaction {}
- data Emoji = Emoji {}
- data Attachment = Attachment {}
- newtype Nonce = Nonce Text
- data MessageReference = MessageReference {}
Documentation
Guild channels represent an isolated set of users and messages in a Guild (Server)
Constructors
| ChannelText | A text channel in a guild. |
Fields
| |
| ChannelNews | |
Fields
| |
| ChannelStorePage | |
Fields
| |
| ChannelVoice | A voice channel in a guild. |
Fields
| |
| ChannelDirectMessage | DM Channels represent a one-to-one conversation between two users, outside the scope of guilds |
Fields
| |
| ChannelGroupDM | |
Fields
| |
| ChannelGuildCategory | |
Fields
| |
| ChannelStage | |
Fields
| |
| ChannelUnknownType | |
Fields
| |
channelIsInGuild :: Channel -> Bool Source #
If the channel is part of a guild (has a guild id field)
Permission overwrites for a channel.
Constructors
| Overwrite | |
Fields
| |
Instances
| Eq Overwrite Source # | |
| Ord Overwrite Source # | |
| Show Overwrite Source # | |
| ToJSON Overwrite Source # | |
Defined in Discord.Internal.Types.Channel | |
| FromJSON Overwrite Source # | |
Represents information about a message in a Discord channel.
Constructors
| Message | |
Fields
| |
data MessageReaction Source #
Constructors
| MessageReaction | |
Fields | |
Instances
Represents an emoticon (emoji)
Constructors
| Emoji | |
data Attachment Source #
Represents an attached to a message file.
Constructors
| Attachment | |
Fields
| |
Instances
| Eq Attachment Source # | |
Defined in Discord.Internal.Types.Channel | |
| Ord Attachment Source # | |
Defined in Discord.Internal.Types.Channel Methods 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 Methods showsPrec :: Int -> Attachment -> ShowS # show :: Attachment -> String # showList :: [Attachment] -> ShowS # | |
| FromJSON Attachment Source # | |
Defined in Discord.Internal.Types.Channel | |
data MessageReference Source #
Represents a Message Reference
Constructors
| MessageReference | |
Fields
| |