Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types relating to Discord Guilds (servers)
Synopsis
- data Guild = Guild {
- guildId :: GuildId
- guildName :: Text
- guildIcon :: Maybe Text
- guildSplash :: Maybe Text
- guildOwnerId :: UserId
- guildPermissions :: Maybe Text
- guildRegion :: Maybe Text
- guildAfkId :: Maybe ChannelId
- guildAfkTimeout :: Integer
- guildWidgetEnabled :: Maybe Bool
- guildWidgetChannelId :: 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 GuildWidget = GuildWidget {}
Documentation
Guilds in Discord represent a collection of users and channels into an isolated Server
https://discord.com/developers/docs/resources/guild#guild-object
Guild | |
|
GuildInfo | |
|
data PartialGuild Source #
Instances
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
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
data Integration Source #
Represents the behavior of a third party account link.
Integration | |
|
Instances
data IntegrationAccount Source #
Represents a third party account link.
IntegrationAccount | |
|
Instances
data GuildWidget Source #
Represents an image to be used in third party sites to link to a discord channel
GuildWidget | |
|