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

Calamity.HTTP.Guild

Description

Guild endpoints

Documentation

data GuildRequest a where Source #

Instances

Instances details
Request (GuildRequest a) a Source # 
Instance details

Defined in Calamity.HTTP.Guild

Methods

toRoute :: GuildRequest a -> Route Source #

url :: GuildRequest a -> String Source #

toAction :: GuildRequest a -> Options -> String -> IO (Response ByteString) Source #

invokeRequest :: forall (reffs :: [(Type -> Type) -> Type -> Type]). (BotC reffs, FromJSON a) => GuildRequest a -> Sem reffs (Either RestError a) Source #

data CreateGuildData Source #

Instances

Instances details
Show CreateGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

Generic CreateGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

Associated Types

type Rep CreateGuildData :: Type -> Type #

ToJSON CreateGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

Methods

toJSON :: CreateGuildData -> Value

toEncoding :: CreateGuildData -> Encoding

toJSONList :: [CreateGuildData] -> Value

toEncodingList :: [CreateGuildData] -> Encoding

type Rep CreateGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

data ModifyGuildData Source #

Instances

Instances details
Show ModifyGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

Generic ModifyGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

Associated Types

type Rep ModifyGuildData :: Type -> Type #

ToJSON ModifyGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

Methods

toJSON :: ModifyGuildData -> Value

toEncoding :: ModifyGuildData -> Encoding

toJSONList :: [ModifyGuildData] -> Value

toEncodingList :: [ModifyGuildData] -> Encoding

type Rep ModifyGuildData Source # 
Instance details

Defined in Calamity.HTTP.Guild

type Rep ModifyGuildData = D1 ('MetaData "ModifyGuildData" "Calamity.HTTP.Guild" "calamity-0.1.4.1-inplace" 'False) (C1 ('MetaCons "ModifyGuildData" 'PrefixI 'True) (((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "icon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "verificationLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "defaultMessageNotifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "explicitContentFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))))) :*: ((S1 ('MetaSel ('Just "afkChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake Channel))) :*: (S1 ('MetaSel ('Just "afkTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "ownerID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake User))))) :*: (S1 ('MetaSel ('Just "splash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "banner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "systemChannelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake Channel))))))))