Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
User endpoints
Documentation
data UserRequest a where Source #
GetCurrentUser :: UserRequest User | |
GetUser :: HasID User u => u -> UserRequest User | |
ModifyCurrentUser :: ModifyUserData -> UserRequest User | |
GetCurrentUserGuilds :: GetCurrentUserGuildsOptions -> UserRequest [Partial Guild] | |
LeaveGuild :: HasID Guild g => g -> UserRequest () | |
CreateDM :: HasID User u => u -> UserRequest DMChannel |
Instances
Request (UserRequest a) Source # | |
Defined in Calamity.HTTP.User type Result (UserRequest a) Source # route :: UserRequest a -> Route Source # action :: UserRequest a -> Url 'Https -> Option 'Https -> Req LbsResponse Source # modifyResponse :: UserRequest a -> Value -> Value Source # | |
type Result (UserRequest a) Source # | |
Defined in Calamity.HTTP.User |
data ModifyUserData Source #
Instances
ToJSON ModifyUserData Source # | |
Defined in Calamity.HTTP.User toJSON :: ModifyUserData -> Value # toEncoding :: ModifyUserData -> Encoding # toJSONList :: [ModifyUserData] -> Value # toEncodingList :: [ModifyUserData] -> Encoding # | |
Show ModifyUserData Source # | |
Defined in Calamity.HTTP.User showsPrec :: Int -> ModifyUserData -> ShowS # show :: ModifyUserData -> String # showList :: [ModifyUserData] -> ShowS # | |
CalamityToJSON' ModifyUserData Source # | |
Defined in Calamity.HTTP.User | |
Default ModifyUserData Source # | |
Defined in Calamity.HTTP.User def :: ModifyUserData # | |
(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "avatar" k ModifyUserData ModifyUserData a b Source # | |
Defined in Calamity.HTTP.User labelOptic :: Optic k NoIx ModifyUserData ModifyUserData a b # | |
(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "username" k ModifyUserData ModifyUserData a b Source # | |
Defined in Calamity.HTTP.User labelOptic :: Optic k NoIx ModifyUserData ModifyUserData a b # |
data GetCurrentUserGuildsOptions Source #
Instances
Show GetCurrentUserGuildsOptions Source # | |
Defined in Calamity.HTTP.User showsPrec :: Int -> GetCurrentUserGuildsOptions -> ShowS # show :: GetCurrentUserGuildsOptions -> String # showList :: [GetCurrentUserGuildsOptions] -> ShowS # | |
Default GetCurrentUserGuildsOptions Source # | |
Defined in Calamity.HTTP.User | |
(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "after" k GetCurrentUserGuildsOptions GetCurrentUserGuildsOptions a b Source # | |
Defined in Calamity.HTTP.User | |
(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "before" k GetCurrentUserGuildsOptions GetCurrentUserGuildsOptions a b Source # | |
Defined in Calamity.HTTP.User | |
(k ~ A_Lens, a ~ Maybe Integer, b ~ Maybe Integer) => LabelOptic "limit" k GetCurrentUserGuildsOptions GetCurrentUserGuildsOptions a b Source # | |
Defined in Calamity.HTTP.User |