Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.Discord.Types.Guild
Description
Types relating to Discord Guilds (servers)
- data Member
- = GuildMember !Snowflake User
- | MemberShort User (Maybe String) ![Snowflake]
- data Guild
- = Guild {
- guildId :: !Snowflake
- guildName :: String
- guildIcon :: String
- guildSplash :: String
- guildOwner :: !Snowflake
- guildRegion :: String
- guildAfkId :: !Snowflake
- guildAfkTimeout :: !Integer
- guildEmbedEnabled :: !Bool
- guildEmbedChannel :: !Snowflake
- guildVerification :: !Integer
- guildNotification :: !Integer
- guildRoles :: [Role]
- guildEmojis :: [Emoji]
- | Unavailable { }
- = Guild {
- data Emoji = Emoji {
- emojiId :: !Snowflake
- emojiName :: String
- emojiRoles :: ![Snowflake]
- emojiManaged :: !Bool
- data Role = Role {}
- data VoiceRegion = VoiceRegion {}
- data Invite
- = Invite {
- inviteCode :: String
- inviteGuild :: !Snowflake
- inviteChan :: !Snowflake
- | InviteLong Invite InviteMeta
- = Invite {
- data InviteMeta = InviteMeta {}
- data Integration = Integration {
- integrationId :: !Snowflake
- integrationName :: String
- integrationType :: String
- integrationEnabled :: Bool
- integrationSyncing :: Bool
- integrationRole :: Snowflake
- integrationBehavior :: Integer
- integrationGrace :: Integer
- integrationOwner :: User
- integrationAccount :: IntegrationAccount
- integrationSync :: UTCTime
- data IntegrationAccount = Account {
- accountId :: String
- accountName :: String
- data GuildEmbed = GuildEmbed {
- embedEnabled :: !Bool
- embedChannel :: !Snowflake
Documentation
Representation of a guild member.
Constructors
GuildMember !Snowflake User | |
MemberShort User (Maybe String) ![Snowflake] |
Guilds in Discord represent a collection of users and channels into an isolated Server
Constructors
Guild | |
Fields
| |
Unavailable | |
Represents an emoticon (emoji)
Constructors
Emoji | |
Fields
|
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
Represents a code to add a user to a guild
Constructors
Invite | |
Fields
| |
InviteLong Invite InviteMeta | Invite code with additional metadata |
data InviteMeta Source #
Additional metadata about an invite.
Constructors
InviteMeta | |
Fields
|
Instances
data Integration Source #
Represents the behavior of a third party account link.
Constructors
Integration | |
Fields
|
Instances
data IntegrationAccount Source #
Represents a third party account link.
Constructors
Account | |
Fields
|
Instances
data GuildEmbed Source #
Represents an image to be used in third party sites to link to a discord channel
Constructors
GuildEmbed | |
Fields
|
Instances