| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Discord.Types.Guild
Description
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 :: !Snowflake
- guildName :: Text
- guildIcon :: Maybe Text
- guildSplash :: Maybe Text
- guildOwnerId :: !Snowflake
- guildPermissions :: Maybe Integer
- guildRegion :: Text
- guildAfkId :: Maybe Snowflake
- guildAfkTimeout :: !Integer
- guildEmbedEnabled :: Maybe Bool
- guildEmbedChannel :: Maybe Snowflake
- guildVerificationLevel :: !Integer
- guildNotification :: !Integer
- guildExplicitFilterLevel :: !Integer
- guildRoles :: [Role]
- guildEmojis :: [Emoji]
- guildFeatures :: [Text]
- guildMultiFactAuth :: !Integer
- guildApplicationId :: Maybe Snowflake
- data Unavailable = Unavailable {}
- data GuildInfo = GuildInfo {}
- data PartialGuild = PartialGuild {}
- data Emoji = Emoji {}
- data Role = Role {}
- data VoiceRegion = VoiceRegion {
- regionId :: !Snowflake
- regionName :: Text
- regionHostname :: Text
- regionPort :: Int
- regionVip :: Bool
- regionOptimal :: Bool
- regionDepreciated :: Bool
- regionCustom :: Bool
- data Invite = Invite {
- inviteCode :: Text
- inviteGuild :: !Snowflake
- inviteChan :: !Snowflake
- data InviteWithMeta = InviteWithMeta Invite InviteMeta
- data InviteMeta = InviteMeta {}
- data Integration = Integration {
- integrationId :: !Snowflake
- integrationName :: Text
- integrationType :: Text
- integrationEnabled :: Bool
- integrationSyncing :: Bool
- integrationRole :: Snowflake
- integrationBehavior :: Integer
- integrationGrace :: Integer
- integrationOwner :: User
- integrationAccount :: IntegrationAccount
- integrationSync :: UTCTime
- data IntegrationAccount = Account {
- accountId :: Text
- accountName :: Text
- data GuildEmbed = GuildEmbed {
- embedEnabled :: !Bool
- embedChannel :: !Snowflake
Documentation
data GuildMember Source #
Representation of a guild member.
Constructors
| GuildMember | |
Fields
| |
Instances
| Show GuildMember Source # | |
Defined in Discord.Types.Guild Methods showsPrec :: Int -> GuildMember -> ShowS # show :: GuildMember -> String # showList :: [GuildMember] -> ShowS # | |
| FromJSON GuildMember Source # | |
Defined in Discord.Types.Guild | |
Guilds in Discord represent a collection of users and channels into an isolated Server
Constructors
| Guild | |
Fields
| |
Constructors
| GuildInfo | |
Fields
| |
data PartialGuild Source #
Constructors
| PartialGuild | |
Fields | |
Instances
| Show PartialGuild Source # | |
Defined in Discord.Types.Guild Methods showsPrec :: Int -> PartialGuild -> ShowS # show :: PartialGuild -> String # showList :: [PartialGuild] -> ShowS # | |
| FromJSON PartialGuild Source # | |
Defined in Discord.Types.Guild | |
Represents an emoticon (emoji)
Constructors
| Emoji | |
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.
Constructors
| Role | |
Fields
| |
data VoiceRegion Source #
VoiceRegion is only refrenced in Guild endpoints, will be moved when voice support is added
Constructors
| VoiceRegion | |
Fields
| |
Instances
| Show VoiceRegion Source # | |
Defined in Discord.Types.Guild Methods showsPrec :: Int -> VoiceRegion -> ShowS # show :: VoiceRegion -> String # showList :: [VoiceRegion] -> ShowS # | |
| FromJSON VoiceRegion Source # | |
Defined in Discord.Types.Guild | |
Represents a code to add a user to a guild
Constructors
| Invite | |
Fields
| |
data InviteWithMeta Source #
Invite code with additional metadata
Constructors
| InviteWithMeta Invite InviteMeta |
Instances
| FromJSON InviteWithMeta Source # | |
Defined in Discord.Types.Guild Methods parseJSON :: Value -> Parser InviteWithMeta # parseJSONList :: Value -> Parser [InviteWithMeta] # | |
data InviteMeta Source #
Additional metadata about an invite.
Constructors
| InviteMeta | |
Fields
| |
Instances
| FromJSON InviteMeta Source # | |
Defined in Discord.Types.Guild | |
data Integration Source #
Represents the behavior of a third party account link.
Constructors
| Integration | |
Fields
| |
Instances
| Show Integration Source # | |
Defined in Discord.Types.Guild Methods showsPrec :: Int -> Integration -> ShowS # show :: Integration -> String # showList :: [Integration] -> ShowS # | |
| FromJSON Integration Source # | |
Defined in Discord.Types.Guild | |
data IntegrationAccount Source #
Represents a third party account link.
Constructors
| Account | |
Fields
| |
Instances
| Show IntegrationAccount Source # | |
Defined in Discord.Types.Guild Methods showsPrec :: Int -> IntegrationAccount -> ShowS # show :: IntegrationAccount -> String # showList :: [IntegrationAccount] -> ShowS # | |
| FromJSON IntegrationAccount Source # | |
Defined in Discord.Types.Guild Methods parseJSON :: Value -> Parser IntegrationAccount # parseJSONList :: Value -> Parser [IntegrationAccount] # | |
data GuildEmbed Source #
Represents an image to be used in third party sites to link to a discord channel
Constructors
| GuildEmbed | |
Fields
| |
Instances
| ToJSON GuildEmbed Source # | |
Defined in Discord.Types.Guild Methods toJSON :: GuildEmbed -> Value # toEncoding :: GuildEmbed -> Encoding # toJSONList :: [GuildEmbed] -> Value # toEncodingList :: [GuildEmbed] -> Encoding # | |
| FromJSON GuildEmbed Source # | |
Defined in Discord.Types.Guild | |