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

Calamity.HTTP.User

Description

User endpoints

Documentation

data UserRequest a where Source #

Instances

Instances details
Request (UserRequest a) Source # 
Instance details

Defined in Calamity.HTTP.User

Associated Types

type Result (UserRequest a) Source #

Methods

route :: UserRequest a -> Route Source #

action :: UserRequest a -> Options -> String -> IO (Response ByteString) Source #

invoke :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, FromJSON (Result (UserRequest a))) => UserRequest a -> Sem r (Either RestError (Result (UserRequest a))) Source #

type Result (UserRequest a) Source # 
Instance details

Defined in Calamity.HTTP.User

type Result (UserRequest a) = a

data ModifyUserData Source #

Constructors

ModifyUserData 

Fields

Instances

Instances details
Show ModifyUserData Source # 
Instance details

Defined in Calamity.HTTP.User

Generic ModifyUserData Source # 
Instance details

Defined in Calamity.HTTP.User

Associated Types

type Rep ModifyUserData :: Type -> Type #

ToJSON ModifyUserData Source # 
Instance details

Defined in Calamity.HTTP.User

Methods

toJSON :: ModifyUserData -> Value

toEncoding :: ModifyUserData -> Encoding

toJSONList :: [ModifyUserData] -> Value

toEncodingList :: [ModifyUserData] -> Encoding

Default ModifyUserData Source # 
Instance details

Defined in Calamity.HTTP.User

type Rep ModifyUserData Source # 
Instance details

Defined in Calamity.HTTP.User

type Rep ModifyUserData = D1 ('MetaData "ModifyUserData" "Calamity.HTTP.User" "calamity-0.1.11.0-inplace" 'False) (C1 ('MetaCons "ModifyUserData" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "avatar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))

data GetCurrentUserGuildsOptions Source #