calamity-0.1.11.0: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Guild.Guild

Description

Discord Guilds

Documentation

data Guild Source #

Instances

Instances details
Eq Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

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

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

Show Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

showsPrec :: Int -> Guild -> ShowS #

show :: Guild -> String #

showList :: [Guild] -> ShowS #

Generic Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Associated Types

type Rep Guild :: Type -> Type #

Methods

from :: Guild -> Rep Guild x #

to :: Rep Guild x -> Guild #

TextShow Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

FromJSON Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

parseJSON :: Value -> Parser Guild

parseJSONList :: Value -> Parser [Guild]

Updateable Guild Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated Guild Source #

PermissionsIn' Guild Source # 
Instance details

Defined in Calamity.Utils.Permissions

Methods

permissionsIn' :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => Guild -> Member -> Sem r Permissions Source #

PermissionsIn Guild Source # 
Instance details

Defined in Calamity.Utils.Permissions

HasID Guild UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID Guild Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID Guild Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

HasID Guild VoiceChannel Source # 
Instance details

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

HasID Guild TextChannel Source # 
Instance details

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

HasID Guild GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID Guild Presence Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Presence

HasID Guild UnavailableGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.UnavailableGuild

HasID Guild BanData Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Ban

Member (CacheEff :: (Type -> Type) -> Type -> Type) r => Parser Guild r Source #

Parser 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.Parser

Associated Types

type ParserResult Guild Source #

Methods

parserName :: Text Source #

parse :: Sem (ParserEffs r) (ParserResult Guild) Source #

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 :: [(Type -> Type) -> Type -> Type]). BotC r => Snowflake Guild -> Sem r (Maybe Guild) Source #

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

Defined in Calamity.Types.Upgradeable

Methods

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

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

Defined in Calamity.Types.Upgradeable

Methods

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

Eq (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

Generic (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Associated Types

type Rep (Partial Guild) :: Type -> Type #

TextShow (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

FromJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

parseJSON :: Value -> Parser (Partial Guild)

parseJSONList :: Value -> Parser [Partial Guild]

ToJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

toJSON :: Partial Guild -> Value

toEncoding :: Partial Guild -> Encoding

toJSONList :: [Partial Guild] -> Value

toEncodingList :: [Partial Guild] -> Encoding

PermissionsIn' (Snowflake Guild) Source # 
Instance details

Defined in Calamity.Utils.Permissions

Methods

permissionsIn' :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => Snowflake Guild -> Member -> Sem r Permissions Source #

PermissionsIn (Guild, GuildChannel) Source # 
Instance details

Defined in Calamity.Utils.Permissions

type Rep Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Rep Guild = D1 ('MetaData "Guild" "Calamity.Types.Model.Guild.Guild" "calamity-0.1.11.0-inplace" 'False) (C1 ('MetaCons "Guild" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Guild)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "icon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "splash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "ownerID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake User)) :*: S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))) :*: (((S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "afkChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel)))) :*: (S1 ('MetaSel ('Just "afkTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "embedEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "embedChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel))) :*: S1 ('MetaSel ('Just "verificationLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "defaultMessageNotifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "explicitContentFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))) :*: ((((S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SnowflakeMap Role)) :*: S1 ('MetaSel ('Just "emojis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SnowflakeMap Emoji))) :*: (S1 ('MetaSel ('Just "features") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "mfaLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "applicationID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake User))) :*: S1 ('MetaSel ('Just "widgetEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "widgetChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel))) :*: S1 ('MetaSel ('Just "systemChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel)))))) :*: (((S1 ('MetaSel ('Just "joinedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "large") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "unavailable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "memberCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "voiceStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [VoiceState]) :*: S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SnowflakeMap Member))) :*: (S1 ('MetaSel ('Just "channels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SnowflakeMap GuildChannel)) :*: S1 ('MetaSel ('Just "presences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashMap (Snowflake User) Presence))))))))
data Partial Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Updated Guild Source # 
Instance details

Defined in Calamity.Internal.Updateable

type ParserResult Guild Source # 
Instance details

Defined in Calamity.Commands.Parser

type Rep (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Rep (Partial Guild) = D1 ('MetaData "Partial" "Calamity.Types.Model.Guild.Guild" "calamity-0.1.11.0-inplace" 'False) (C1 ('MetaCons "PartialGuild" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Guild)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data family Partial t Source #

Instances

Instances details
HasID Channel (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

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

HasID Emoji (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Eq (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

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

Eq (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Show (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

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

Show (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Generic (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Associated Types

type Rep (Partial Channel) :: Type -> Type #

Generic (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Associated Types

type Rep (Partial Guild) :: Type -> Type #

Generic (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Associated Types

type Rep (Partial User) :: Type -> Type #

Methods

from :: Partial User -> Rep (Partial User) x #

to :: Rep (Partial User) x -> Partial User #

Generic (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Associated Types

type Rep (Partial Emoji) :: Type -> Type #

TextShow (Partial Channel) 
Instance details

Defined in Calamity.Types.Model.Channel

TextShow (Partial Guild) 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

TextShow (Partial User) 
Instance details

Defined in Calamity.Types.Model.User

TextShow (Partial Emoji) 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

FromJSON (Partial Channel) 
Instance details

Defined in Calamity.Types.Model.Channel

Methods

parseJSON :: Value -> Parser (Partial Channel)

parseJSONList :: Value -> Parser [Partial Channel]

FromJSON (Partial Guild) 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

parseJSON :: Value -> Parser (Partial Guild)

parseJSONList :: Value -> Parser [Partial Guild]

FromJSON (Partial User) 
Instance details

Defined in Calamity.Types.Model.User

Methods

parseJSON :: Value -> Parser (Partial User)

parseJSONList :: Value -> Parser [Partial User]

FromJSON (Partial Emoji) 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Methods

parseJSON :: Value -> Parser (Partial Emoji)

parseJSONList :: Value -> Parser [Partial Emoji]

ToJSON (Partial Channel) 
Instance details

Defined in Calamity.Types.Model.Channel

Methods

toJSON :: Partial Channel -> Value

toEncoding :: Partial Channel -> Encoding

toJSONList :: [Partial Channel] -> Value

toEncodingList :: [Partial Channel] -> Encoding

ToJSON (Partial Guild) 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

toJSON :: Partial Guild -> Value

toEncoding :: Partial Guild -> Encoding

toJSONList :: [Partial Guild] -> Value

toEncodingList :: [Partial Guild] -> Encoding

ToJSON (Partial User) 
Instance details

Defined in Calamity.Types.Model.User

Methods

toJSON :: Partial User -> Value

toEncoding :: Partial User -> Encoding

toJSONList :: [Partial User] -> Value

toEncodingList :: [Partial User] -> Encoding

ToJSON (Partial Emoji) 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Methods

toJSON :: Partial Emoji -> Value

toEncoding :: Partial Emoji -> Encoding

toJSONList :: [Partial Emoji] -> Value

toEncodingList :: [Partial Emoji] -> Encoding

data Partial Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

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 Partial Emoji Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

type Rep (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

type Rep (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Rep (Partial Guild) = D1 ('MetaData "Partial" "Calamity.Types.Model.Guild.Guild" "calamity-0.1.11.0-inplace" 'False) (C1 ('MetaCons "PartialGuild" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Guild)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))
type Rep (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

type Rep (Partial User) = D1 ('MetaData "Partial" "Calamity.Types.Model.User" "calamity-0.1.11.0-inplace" 'True) (C1 ('MetaCons "PartialUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake User))))
type Rep (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

type Rep (Partial Emoji) = D1 ('MetaData "Partial" "Calamity.Types.Model.Guild.Emoji" "calamity-0.1.11.0-inplace" 'False) (C1 ('MetaCons "PartialEmoji" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Emoji)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data UpdatedGuild Source #

Instances

Instances details
Eq UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Show UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Generic UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Associated Types

type Rep UpdatedGuild :: Type -> Type #

TextShow UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

FromJSON UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

parseJSON :: Value -> Parser UpdatedGuild

parseJSONList :: Value -> Parser [UpdatedGuild]

HasID Guild UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Rep UpdatedGuild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Rep UpdatedGuild = D1 ('MetaData "UpdatedGuild" "Calamity.Types.Model.Guild.Guild" "calamity-0.1.11.0-inplace" 'False) (C1 ('MetaCons "UpdatedGuild" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Guild)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "icon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "splash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "ownerID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake User)) :*: (S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "afkChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel))) :*: (S1 ('MetaSel ('Just "afkTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "embedEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "embedChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel))) :*: (S1 ('MetaSel ('Just "verificationLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "defaultMessageNotifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "explicitContentFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SnowflakeMap Role)) :*: S1 ('MetaSel ('Just "emojis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SnowflakeMap Emoji))))) :*: ((S1 ('MetaSel ('Just "features") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "mfaLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "applicationID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake User))))) :*: (S1 ('MetaSel ('Just "widgetEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "widgetChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel))) :*: S1 ('MetaSel ('Just "systemChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake GuildChannel)))))))))