Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types relating to Discord Guilds (servers)
Synopsis
- data GuildMember = GuildMember {
- memberUser :: User
- memberNick :: Maybe Text
- memberRoles :: [Snowflake]
- memberJoinedAt :: UTCTime
- memberDeaf :: Bool
- memberMute :: Bool
- data Guild = Guild {
- guildId :: GuildId
- guildName :: Text
- guildIcon :: Maybe Text
- guildSplash :: Maybe Text
- guildOwnerId :: UserId
- guildPermissions :: Maybe Integer
- guildRegion :: Text
- guildAfkId :: Maybe ChannelId
- guildAfkTimeout :: Integer
- guildEmbedEnabled :: Maybe Bool
- guildEmbedChannel :: Maybe ChannelId
- guildVerificationLevel :: Integer
- guildNotification :: Integer
- guildExplicitFilterLevel :: Integer
- guildRoles :: [Role]
- guildEmojis :: [Emoji]
- guildFeatures :: [Text]
- guildMultiFactAuth :: !Integer
- guildApplicationId :: Maybe Snowflake
- data GuildUnavailable = GuildUnavailable {}
- data GuildInfo = GuildInfo {}
- data PartialGuild = PartialGuild {}
- data Role = Role {}
- data VoiceRegion = VoiceRegion {}
- data GuildBan = GuildBan {}
- data Invite = Invite {}
- data InviteWithMeta = InviteWithMeta Invite InviteMeta
- data InviteMeta = InviteMeta {}
- data Integration = Integration {}
- data IntegrationAccount = IntegrationAccount {
- accountId :: Text
- accountName :: Text
- data GuildEmbed = GuildEmbed {}
Documentation
data GuildMember Source #
Representation of a guild member.
GuildMember | |
|
Instances
Eq GuildMember Source # | |
Defined in Discord.Internal.Types.Guild (==) :: GuildMember -> GuildMember -> Bool # (/=) :: GuildMember -> GuildMember -> Bool # | |
Ord GuildMember Source # | |
Defined in Discord.Internal.Types.Guild compare :: GuildMember -> GuildMember -> Ordering # (<) :: GuildMember -> GuildMember -> Bool # (<=) :: GuildMember -> GuildMember -> Bool # (>) :: GuildMember -> GuildMember -> Bool # (>=) :: GuildMember -> GuildMember -> Bool # max :: GuildMember -> GuildMember -> GuildMember # min :: GuildMember -> GuildMember -> GuildMember # | |
Show GuildMember Source # | |
Defined in Discord.Internal.Types.Guild showsPrec :: Int -> GuildMember -> ShowS # show :: GuildMember -> String # showList :: [GuildMember] -> ShowS # | |
FromJSON GuildMember Source # | |
Defined in Discord.Internal.Types.Guild parseJSON :: Value -> Parser GuildMember # parseJSONList :: Value -> Parser [GuildMember] # |
Guilds in Discord represent a collection of users and channels into an isolated Server
Guild | |
|
GuildInfo | |
|
data PartialGuild Source #
Instances
Eq PartialGuild Source # | |
Defined in Discord.Internal.Types.Guild (==) :: PartialGuild -> PartialGuild -> Bool # (/=) :: PartialGuild -> PartialGuild -> Bool # | |
Ord PartialGuild Source # | |
Defined in Discord.Internal.Types.Guild compare :: PartialGuild -> PartialGuild -> Ordering # (<) :: PartialGuild -> PartialGuild -> Bool # (<=) :: PartialGuild -> PartialGuild -> Bool # (>) :: PartialGuild -> PartialGuild -> Bool # (>=) :: PartialGuild -> PartialGuild -> Bool # max :: PartialGuild -> PartialGuild -> PartialGuild # min :: PartialGuild -> PartialGuild -> PartialGuild # | |
Show PartialGuild Source # | |
Defined in Discord.Internal.Types.Guild showsPrec :: Int -> PartialGuild -> ShowS # show :: PartialGuild -> String # showList :: [PartialGuild] -> ShowS # | |
FromJSON PartialGuild Source # | |
Defined in Discord.Internal.Types.Guild parseJSON :: Value -> Parser PartialGuild # parseJSONList :: Value -> Parser [PartialGuild] # |
Roles represent a set of permissions attached to a group of users. Roles have unique names, colors, and can be "pinned" to the side bar, causing their members to be listed separately. Roles are unique per guild, and can have separate permission profiles for the global context (guild) and channel context.
Role | |
|
data VoiceRegion Source #
VoiceRegion is only refrenced in Guild endpoints, will be moved when voice support is added
VoiceRegion | |
|
Instances
Eq VoiceRegion Source # | |
Defined in Discord.Internal.Types.Guild (==) :: VoiceRegion -> VoiceRegion -> Bool # (/=) :: VoiceRegion -> VoiceRegion -> Bool # | |
Ord VoiceRegion Source # | |
Defined in Discord.Internal.Types.Guild compare :: VoiceRegion -> VoiceRegion -> Ordering # (<) :: VoiceRegion -> VoiceRegion -> Bool # (<=) :: VoiceRegion -> VoiceRegion -> Bool # (>) :: VoiceRegion -> VoiceRegion -> Bool # (>=) :: VoiceRegion -> VoiceRegion -> Bool # max :: VoiceRegion -> VoiceRegion -> VoiceRegion # min :: VoiceRegion -> VoiceRegion -> VoiceRegion # | |
Show VoiceRegion Source # | |
Defined in Discord.Internal.Types.Guild showsPrec :: Int -> VoiceRegion -> ShowS # show :: VoiceRegion -> String # showList :: [VoiceRegion] -> ShowS # | |
FromJSON VoiceRegion Source # | |
Defined in Discord.Internal.Types.Guild parseJSON :: Value -> Parser VoiceRegion # parseJSONList :: Value -> Parser [VoiceRegion] # |
Info about a Ban
Represents a code to add a user to a guild
Invite | |
|
data InviteWithMeta Source #
Invite code with additional metadata
Instances
FromJSON InviteWithMeta Source # | |
Defined in Discord.Internal.Types.Guild parseJSON :: Value -> Parser InviteWithMeta # parseJSONList :: Value -> Parser [InviteWithMeta] # |
data InviteMeta Source #
Additional metadata about an invite.
InviteMeta | |
|
Instances
Eq InviteMeta Source # | |
Defined in Discord.Internal.Types.Guild (==) :: InviteMeta -> InviteMeta -> Bool # (/=) :: InviteMeta -> InviteMeta -> Bool # | |
Ord InviteMeta Source # | |
Defined in Discord.Internal.Types.Guild compare :: InviteMeta -> InviteMeta -> Ordering # (<) :: InviteMeta -> InviteMeta -> Bool # (<=) :: InviteMeta -> InviteMeta -> Bool # (>) :: InviteMeta -> InviteMeta -> Bool # (>=) :: InviteMeta -> InviteMeta -> Bool # max :: InviteMeta -> InviteMeta -> InviteMeta # min :: InviteMeta -> InviteMeta -> InviteMeta # | |
Show InviteMeta Source # | |
Defined in Discord.Internal.Types.Guild showsPrec :: Int -> InviteMeta -> ShowS # show :: InviteMeta -> String # showList :: [InviteMeta] -> ShowS # | |
FromJSON InviteMeta Source # | |
Defined in Discord.Internal.Types.Guild parseJSON :: Value -> Parser InviteMeta # parseJSONList :: Value -> Parser [InviteMeta] # |
data Integration Source #
Represents the behavior of a third party account link.
Integration | |
|
Instances
Eq Integration Source # | |
Defined in Discord.Internal.Types.Guild (==) :: Integration -> Integration -> Bool # (/=) :: Integration -> Integration -> Bool # | |
Ord Integration Source # | |
Defined in Discord.Internal.Types.Guild compare :: Integration -> Integration -> Ordering # (<) :: Integration -> Integration -> Bool # (<=) :: Integration -> Integration -> Bool # (>) :: Integration -> Integration -> Bool # (>=) :: Integration -> Integration -> Bool # max :: Integration -> Integration -> Integration # min :: Integration -> Integration -> Integration # | |
Show Integration Source # | |
Defined in Discord.Internal.Types.Guild showsPrec :: Int -> Integration -> ShowS # show :: Integration -> String # showList :: [Integration] -> ShowS # | |
FromJSON Integration Source # | |
Defined in Discord.Internal.Types.Guild parseJSON :: Value -> Parser Integration # parseJSONList :: Value -> Parser [Integration] # |
data IntegrationAccount Source #
Represents a third party account link.
IntegrationAccount | |
|
Instances
data GuildEmbed Source #
Represents an image to be used in third party sites to link to a discord channel
GuildEmbed | |
|