| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Discord.Types.Channel
Description
Data structures pertaining to Discord Channels
Synopsis
- data User = User {}
- data Webhook = Webhook {}
- data Channel
- = ChannelText { }
- | ChannelVoice { }
- | ChannelDirectMessage { }
- | ChannelGroupDM { }
- | ChannelGuildCategory { }
- channelIsInGuild :: Channel -> Bool
- data Overwrite = Overwrite {}
- data Message = Message {
- messageId :: MessageId
- messageChannel :: ChannelId
- messageAuthor :: Either WebhookId 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 {
- embedTitle :: String
- embedType :: String
- embedDesc :: String
- embedUrl :: String
- embedTime :: UTCTime
- embedColor :: Integer
- embedFields :: [SubEmbed]
- data SubEmbed
Documentation
Represents information about a user.
Constructors
| User | |
Fields
| |
Constructors
| Webhook | |
Fields
| |
Guild channels represent an isolated set of users and messages in a Guild (Server)
Constructors
| ChannelText | A text channel in a guild. |
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
| |
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.Types.Channel | |
| FromJSON Overwrite Source # | |
Represents information about a message in a Discord channel.
Constructors
| Message | |
Fields
| |
data Attachment Source #
Represents an attached to a message file.
Constructors
| Attachment | |
Fields
| |
Instances
| Eq Attachment Source # | |
Defined in Discord.Types.Channel | |
| Show Attachment Source # | |
Defined in Discord.Types.Channel Methods showsPrec :: Int -> Attachment -> ShowS # show :: Attachment -> String # showList :: [Attachment] -> ShowS # | |
| FromJSON Attachment Source # | |
Defined in Discord.Types.Channel | |
An embed attached to a message.
Constructors
| Embed | |
Fields
| |
Represents a part of an embed.
Constructors