calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Types.Model.Guild

Description

Discord Guilds

Documentation

data family Partial t Source #

Instances

Instances details
(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "animated" k (Partial Emoji) (Partial Emoji) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "channelID" k (Partial Message) (Partial Message) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "guildID" k (Partial Message) (Partial Message) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "id" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ Snowflake Emoji, b ~ Snowflake Emoji) => LabelOptic "id" k (Partial Emoji) (Partial Emoji) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

(k ~ A_Lens, a ~ Snowflake Guild, b ~ Snowflake Guild) => LabelOptic "id" k (Partial Guild) (Partial Guild) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

(k ~ An_Iso, a ~ Snowflake User, b ~ Snowflake User) => LabelOptic "id" k (Partial User) (Partial User) a b Source # 
Instance details

Defined in Calamity.Types.Model.User

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k (Partial Emoji) (Partial Emoji) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k (Partial Guild) (Partial Guild) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

(k ~ A_Lens, a ~ Maybe (Snowflake Category), b ~ Maybe (Snowflake Category)) => LabelOptic "parentID" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ Maybe Permissions, b ~ Maybe Permissions) => LabelOptic "permissions" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ ChannelType, b ~ ChannelType) => LabelOptic "type_" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

HasID Channel (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

HasID Channel (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Emoji (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

HasID Guild (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID User (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

FromJSON (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

FromJSON (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

FromJSON (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

FromJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

FromJSON (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

ToJSON (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

ToJSON (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

ToJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Show (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Show (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Show (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Show (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

CalamityToJSON' (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Methods

toPairs :: KeyValue kv => Partial Channel -> [Maybe kv] Source #

CalamityToJSON' (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Methods

toPairs :: KeyValue kv => Partial Emoji -> [Maybe kv] Source #

CalamityToJSON' (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

toPairs :: KeyValue kv => Partial Guild -> [Maybe kv] Source #

Eq (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Eq (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Eq (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Eq (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

TextShow (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

TextShow (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

TextShow (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

TextShow (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

data Partial Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

data Partial Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

data Partial Emoji Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

data Partial Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

newtype Partial User Source # 
Instance details

Defined in Calamity.Types.Model.User

data Guild Source #

Instances

Instances details
FromJSON Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Show Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

showsPrec :: Int -> Guild -> ShowS #

show :: Guild -> String #

showList :: [Guild] -> ShowS #

Updateable Guild Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated Guild Source #

PermissionsIn Guild Source #

A Member's Permissions in a guild are just their roles

Instance details

Defined in Calamity.Utils.Permissions

PermissionsIn' Guild Source #

A Member's Permissions in a guild are just their roles

Instance details

Defined in Calamity.Utils.Permissions

Methods

permissionsIn' :: forall (r :: EffectRow) u. (BotC r, HasID User u) => Guild -> u -> Sem r Permissions Source #

Eq Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

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

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

TextShow Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID Guild GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID Guild TextChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild.Text

HasID Guild VoiceChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild.Voice

HasID Guild BanData Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Ban

HasID Guild Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID Guild UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID Guild UnavailableGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.UnavailableGuild

HasID Guild Presence Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Presence

Member (CacheEff :: (Type -> Type) -> Type -> Type) r => ParameterParser Guild c r

ParameterParser for guilds, this only looks in the cache. Use Snowflake Guild and use upgrade if you want to allow fetching from http.

Instance details

Defined in Calamity.Commands.CalamityParsers

Associated Types

type ParserResult Guild

Methods

parameterInfo :: ParameterInfo

parameterDescription :: Text

parse :: Sem (ParserEffs c r) (ParserResult Guild)

(k ~ A_Lens, a ~ Maybe (Snowflake GuildChannel), b ~ Maybe (Snowflake GuildChannel)) => LabelOptic "afkChannelID" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "afkTimeout" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe (Snowflake User), b ~ Maybe (Snowflake User)) => LabelOptic "applicationID" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe GuildBanner, b ~ Maybe GuildBanner) => LabelOptic "banner" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ SnowflakeMap GuildChannel, b ~ SnowflakeMap GuildChannel) => LabelOptic "channels" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "defaultMessageNotifications" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe GuildSplash, b ~ Maybe GuildSplash) => LabelOptic "discoverySplash" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe (Snowflake GuildChannel), b ~ Maybe (Snowflake GuildChannel)) => LabelOptic "embedChannelID" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "embedEnabled" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ SnowflakeMap Emoji, b ~ SnowflakeMap Emoji) => LabelOptic "emojis" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "explicitContentFilter" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ [Text], b ~ [Text]) => LabelOptic "features" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe GuildIcon, b ~ Maybe GuildIcon) => LabelOptic "icon" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Snowflake Guild, b ~ Snowflake Guild) => LabelOptic "id" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe UTCTime, b ~ Maybe UTCTime) => LabelOptic "joinedAt" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "large" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "memberCount" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ SnowflakeMap Member, b ~ SnowflakeMap Member) => LabelOptic "members" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "mfaLevel" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "owner" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Snowflake User, b ~ Snowflake User) => LabelOptic "ownerID" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Word64, b ~ Word64) => LabelOptic "permissions" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "preferredLocale" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ HashMap (Snowflake User) Presence, b ~ HashMap (Snowflake User) Presence) => LabelOptic "presences" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ SnowflakeMap Role, b ~ SnowflakeMap Role) => LabelOptic "roles" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe GuildSplash, b ~ Maybe GuildSplash) => LabelOptic "splash" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe (Snowflake GuildChannel), b ~ Maybe (Snowflake GuildChannel)) => LabelOptic "systemChannelID" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "unavailable" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "verificationLevel" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ [VoiceState], b ~ [VoiceState]) => LabelOptic "voiceStates" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Maybe (Snowflake GuildChannel), b ~ Maybe (Snowflake GuildChannel)) => LabelOptic "widgetChannelID" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "widgetEnabled" k Guild Guild a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

labelOptic :: Optic k NoIx Guild Guild a b #

(k ~ A_Lens, a ~ Snowflake Guild, b ~ Snowflake Guild) => LabelOptic "id" k (Partial Guild) (Partial Guild) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k (Partial Guild) (Partial Guild) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID Guild (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Upgradeable Guild (Snowflake Guild) Source # 
Instance details

Defined in Calamity.Types.Upgradeable

Methods

upgrade :: forall (r :: EffectRow). BotC r => Snowflake Guild -> Sem r (Maybe Guild) Source #

Upgradeable Emoji (Snowflake Guild, Snowflake Emoji) Source # 
Instance details

Defined in Calamity.Types.Upgradeable

Methods

upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Emoji) -> Sem r (Maybe Emoji) Source #

Upgradeable Member (Snowflake Guild, Snowflake Member) Source # 
Instance details

Defined in Calamity.Types.Upgradeable

Methods

upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Member) -> Sem r (Maybe Member) Source #

Upgradeable Role (Snowflake Guild, Snowflake Role) Source # 
Instance details

Defined in Calamity.Types.Upgradeable

Methods

upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Role) -> Sem r (Maybe Role) Source #

FromJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

ToJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Show (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

CalamityToJSON' (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

toPairs :: KeyValue kv => Partial Guild -> [Maybe kv] Source #

PermissionsIn' (Snowflake Guild) Source #

A Member's Permissions in a guild are just their roles

This will fetch the guild from the cache or http as needed

Instance details

Defined in Calamity.Utils.Permissions

Methods

permissionsIn' :: forall (r :: EffectRow) u. (BotC r, HasID User u) => Snowflake Guild -> u -> Sem r Permissions Source #

Eq (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

TextShow (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

PermissionsIn (Guild, GuildChannel) Source #

A Member's Permissions in a channel are their roles and overwrites

Instance details

Defined in Calamity.Utils.Permissions

type Updated Guild Source # 
Instance details

Defined in Calamity.Internal.Updateable

data Partial Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type ParserResult Guild 
Instance details

Defined in Calamity.Commands.CalamityParsers

type ParserResult Guild = Guild