discord-haskell-0.7.1: Write bots for Discord in Haskell

Safe HaskellNone
LanguageHaskell2010

Discord.Types.Guild

Description

Types relating to Discord Guilds (servers)

Synopsis

Documentation

data GuildMember Source #

Representation of a guild member.

data Guild Source #

Guilds in Discord represent a collection of users and channels into an isolated Server

Constructors

Guild 

Fields

Instances
Show Guild Source # 
Instance details

Defined in Discord.Types.Guild

Methods

showsPrec :: Int -> Guild -> ShowS #

show :: Guild -> String #

showList :: [Guild] -> ShowS #

FromJSON Guild Source # 
Instance details

Defined in Discord.Types.Guild

data GuildInfo Source #

Constructors

GuildInfo 

Fields

Instances
Show GuildInfo Source # 
Instance details

Defined in Discord.Types.Guild

FromJSON GuildInfo Source # 
Instance details

Defined in Discord.Types.Guild

data Emoji Source #

Represents an emoticon (emoji)

Constructors

Emoji 

Fields

Instances
Show Emoji Source # 
Instance details

Defined in Discord.Types.Guild

Methods

showsPrec :: Int -> Emoji -> ShowS #

show :: Emoji -> String #

showList :: [Emoji] -> ShowS #

FromJSON Emoji Source # 
Instance details

Defined in Discord.Types.Guild

data Role Source #

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

Instances
Eq Role Source # 
Instance details

Defined in Discord.Types.Guild

Methods

(==) :: Role -> Role -> Bool #

(/=) :: Role -> Role -> Bool #

Show Role Source # 
Instance details

Defined in Discord.Types.Guild

Methods

showsPrec :: Int -> Role -> ShowS #

show :: Role -> String #

showList :: [Role] -> ShowS #

FromJSON Role Source # 
Instance details

Defined in Discord.Types.Guild

data VoiceRegion Source #

VoiceRegion is only refrenced in Guild endpoints, will be moved when voice support is added

Constructors

VoiceRegion 

Fields

data Invite Source #

Represents a code to add a user to a guild

Constructors

Invite 

Fields

Instances
FromJSON Invite Source # 
Instance details

Defined in Discord.Types.Guild

data InviteWithMeta Source #

Invite code with additional metadata

data InviteMeta Source #

Additional metadata about an invite.

Constructors

InviteMeta 

Fields

data Integration Source #

Represents the behavior of a third party account link.

Constructors

Integration 

Fields

data IntegrationAccount Source #

Represents a third party account link.

Constructors

Account 

Fields

data GuildEmbed Source #

Represents an image to be used in third party sites to link to a discord channel

Constructors

GuildEmbed 

Fields