{"openapi":"3.0.3","info":{"title":"Kiai API","description":"Kiai API Documentation","version":"3.0.0"},"tags":[{"name":"Reward Paths","description":"Manage reward ladders, archive paths, configure rechoosing, and assign member paths. Every endpoint requires the Rewards API permission and the rewards-path experiment enabled for the guild."},{"name":"Rewards","description":"Create and manage level and prestige rewards, discover guild-specific reward capabilities, and reconcile declarative role rewards. Requires the Rewards API permission."}],"components":{"securitySchemes":{"token":{"type":"apiKey","name":"Authorization","in":"header"}},"parameters":{"guildId":{"name":"guildId","in":"query","description":"The guild ID this query is for","required":false,"schema":{"type":"string"}}},"schemas":{}},"paths":{"/api/v3/":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"documentation":{"type":"string"},"version":{"type":"number"}},"required":["message","documentation","version"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"message":{"type":"string"},"documentation":{"type":"string"},"version":{"type":"number"}},"required":["message","documentation","version"]}},"text/plain":{"schema":{"type":"object","properties":{"message":{"type":"string"},"documentation":{"type":"string"},"version":{"type":"number"}},"required":["message","documentation","version"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3","summary":"Status","tags":["Kiai"]}},"/api/v3/{guildId}/leaderboard":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to get the leaderboard for","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"Leaderboard rank to start at","schema":{"default":1,"minimum":1,"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Leaderboard rank to start at","default":1,"minimum":1,"type":"integer"}]},"in":"query","name":"start","required":false},{"description":"Leaderboard rank to end at","schema":{"minimum":1,"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Leaderboard rank to end at","minimum":1,"type":"integer"}]},"in":"query","name":"end","required":false},{"schema":{"anyOf":[{"const":"xp","type":"string"},{"const":"message","type":"string"},{"const":"voice","type":"string"},{"const":"streak","type":"string"},{"const":"prestige","type":"string"}]},"in":"query","name":"type","required":false},{"schema":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"in":"query","name":"time","required":false},{"schema":{"minimum":1,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"type":"integer"}]},"in":"query","name":"startPeriod","required":false},{"schema":{"minimum":1,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"type":"integer"}]},"in":"query","name":"endPeriod","required":false}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","userId","guildId","rank","level","currentLevel","nextLevel","nextLevelXp","xp","prestige","messages","messagesSent","voice","voiceMinutes","streak","currentXpStreak","score"],"properties":{"id":{"type":"string"},"userId":{"type":"string"},"guildId":{"type":"string"},"rank":{"type":"number"},"level":{"type":"number"},"currentLevel":{"type":"number"},"nextLevel":{"type":"number"},"nextLevelXp":{"type":"number"},"xp":{"type":"number"},"prestige":{"type":"number"},"messages":{"type":"number"},"messagesSent":{"type":"number"},"voice":{"type":"number"},"voiceMinutes":{"type":"number"},"streak":{"type":"number"},"currentXpStreak":{"type":"number"},"score":{"type":"number"}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","userId","guildId","rank","level","currentLevel","nextLevel","nextLevelXp","xp","prestige","messages","messagesSent","voice","voiceMinutes","streak","currentXpStreak","score"],"properties":{"id":{"type":"string"},"userId":{"type":"string"},"guildId":{"type":"string"},"rank":{"type":"number"},"level":{"type":"number"},"currentLevel":{"type":"number"},"nextLevel":{"type":"number"},"nextLevelXp":{"type":"number"},"xp":{"type":"number"},"prestige":{"type":"number"},"messages":{"type":"number"},"messagesSent":{"type":"number"},"voice":{"type":"number"},"voiceMinutes":{"type":"number"},"streak":{"type":"number"},"currentXpStreak":{"type":"number"},"score":{"type":"number"}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","userId","guildId","rank","level","currentLevel","nextLevel","nextLevelXp","xp","prestige","messages","messagesSent","voice","voiceMinutes","streak","currentXpStreak","score"],"properties":{"id":{"type":"string"},"userId":{"type":"string"},"guildId":{"type":"string"},"rank":{"type":"number"},"level":{"type":"number"},"currentLevel":{"type":"number"},"nextLevel":{"type":"number"},"nextLevelXp":{"type":"number"},"xp":{"type":"number"},"prestige":{"type":"number"},"messages":{"type":"number"},"messagesSent":{"type":"number"},"voice":{"type":"number"},"voiceMinutes":{"type":"number"},"streak":{"type":"number"},"currentXpStreak":{"type":"number"},"score":{"type":"number"}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdLeaderboard","tags":["Leveling"],"summary":"Get Leaderboard"}},"/api/v3/{guildId}/member/{userId}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to get the user data for","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"ID of the user to get data for","schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","userId","guildId","level","currentLevel","nextLevel","nextLevelXp","xp","prestige","messages","messagesSent","voice","voiceMinutes","rankCardBackground","streak","currentXpStreak","streakDoneToday"],"properties":{"id":{"type":"string"},"userId":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"currentLevel":{"type":"number"},"nextLevel":{"type":"number"},"nextLevelXp":{"type":"number"},"xp":{"type":"number"},"prestige":{"type":"number"},"messages":{"type":"number"},"messagesSent":{"type":"number"},"voice":{"type":"number"},"voiceMinutes":{"type":"number"},"rankCardBackground":{"anyOf":[{"type":"string"},{"type":"null"}]},"streak":{"type":"number"},"currentXpStreak":{"type":"number"},"streakDoneToday":{"type":"boolean"}}},{"type":"null"}]}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","userId","guildId","level","currentLevel","nextLevel","nextLevelXp","xp","prestige","messages","messagesSent","voice","voiceMinutes","rankCardBackground","streak","currentXpStreak","streakDoneToday"],"properties":{"id":{"type":"string"},"userId":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"currentLevel":{"type":"number"},"nextLevel":{"type":"number"},"nextLevelXp":{"type":"number"},"xp":{"type":"number"},"prestige":{"type":"number"},"messages":{"type":"number"},"messagesSent":{"type":"number"},"voice":{"type":"number"},"voiceMinutes":{"type":"number"},"rankCardBackground":{"anyOf":[{"type":"string"},{"type":"null"}]},"streak":{"type":"number"},"currentXpStreak":{"type":"number"},"streakDoneToday":{"type":"boolean"}}},{"type":"null"}]}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","userId","guildId","level","currentLevel","nextLevel","nextLevelXp","xp","prestige","messages","messagesSent","voice","voiceMinutes","rankCardBackground","streak","currentXpStreak","streakDoneToday"],"properties":{"id":{"type":"string"},"userId":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"currentLevel":{"type":"number"},"nextLevel":{"type":"number"},"nextLevelXp":{"type":"number"},"xp":{"type":"number"},"prestige":{"type":"number"},"messages":{"type":"number"},"messagesSent":{"type":"number"},"voice":{"type":"number"},"voiceMinutes":{"type":"number"},"rankCardBackground":{"anyOf":[{"type":"string"},{"type":"null"}]},"streak":{"type":"number"},"currentXpStreak":{"type":"number"},"streakDoneToday":{"type":"boolean"}}},{"type":"null"}]}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdMemberByUserId","tags":["Leveling"],"summary":"Get User Guild Data"}},"/api/v3/{guildId}/member/{userId}/prestige":{"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"ID of the user to prestige","schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success","oldLevel","oldPrestige","prestige","currentLevel","xp"],"properties":{"success":{"type":"boolean"},"oldLevel":{"type":"number"},"oldPrestige":{"type":"number"},"prestige":{"type":"number"},"currentLevel":{"type":"number"},"xp":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success","oldLevel","oldPrestige","prestige","currentLevel","xp"],"properties":{"success":{"type":"boolean"},"oldLevel":{"type":"number"},"oldPrestige":{"type":"number"},"prestige":{"type":"number"},"currentLevel":{"type":"number"},"xp":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success","oldLevel","oldPrestige","prestige","currentLevel","xp"],"properties":{"success":{"type":"boolean"},"oldLevel":{"type":"number"},"oldPrestige":{"type":"number"},"prestige":{"type":"number"},"currentLevel":{"type":"number"},"xp":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdMemberByUserIdPrestige","tags":["Leveling"],"summary":"Prestige User"}},"/api/v3/{guildId}/member/{userId}/xp":{"patch":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"ID of the user to add/remove xp ","schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"patchApiV3ByGuildIdMemberByUserIdXp","tags":["Leveling"],"summary":"Add or Remove XP","description":"If value to modify causes the user to go above the max XP of 100,000,000, then it will be capped at that value. If it causes the user to go below 0, then it will be floored at 0.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["xp"],"properties":{"xp":{"description":"XP to add or remove from the user. Negative values will remove XP.","minimum":-100000000,"maximum":100000000,"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["xp"],"properties":{"xp":{"description":"XP to add or remove from the user. Negative values will remove XP.","minimum":-100000000,"maximum":100000000,"type":"number"}}}},"text/plain":{"schema":{"type":"object","required":["xp"],"properties":{"xp":{"description":"XP to add or remove from the user. Negative values will remove XP.","minimum":-100000000,"maximum":100000000,"type":"number"}}}}}}},"put":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"ID of the user to set data for","schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"putApiV3ByGuildIdMemberByUserIdXp","tags":["Leveling"],"summary":"Set User's XP","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["xp"],"properties":{"xp":{"description":"XP to set for the user.","minimum":0,"maximum":100000000,"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["xp"],"properties":{"xp":{"description":"XP to set for the user.","minimum":0,"maximum":100000000,"type":"number"}}}},"text/plain":{"schema":{"type":"object","required":["xp"],"properties":{"xp":{"description":"XP to set for the user.","minimum":0,"maximum":100000000,"type":"number"}}}}}}}},"/api/v3/{guildId}/stats":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["startWeek","currentWeek","trend"],"properties":{"startWeek":{"type":"number"},"currentWeek":{"type":"number"},"trend":{"type":"array","items":{"type":"object","required":["kiaiWeek","weekLabel","weekStart","totalXp","totalMessages","totalVoiceMinutes","activeUsers"],"properties":{"kiaiWeek":{"type":"number"},"weekLabel":{"type":"string"},"weekStart":{"type":"string"},"totalXp":{"type":"number"},"totalMessages":{"type":"number"},"totalVoiceMinutes":{"type":"number"},"activeUsers":{"type":"number"}}}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["startWeek","currentWeek","trend"],"properties":{"startWeek":{"type":"number"},"currentWeek":{"type":"number"},"trend":{"type":"array","items":{"type":"object","required":["kiaiWeek","weekLabel","weekStart","totalXp","totalMessages","totalVoiceMinutes","activeUsers"],"properties":{"kiaiWeek":{"type":"number"},"weekLabel":{"type":"string"},"weekStart":{"type":"string"},"totalXp":{"type":"number"},"totalMessages":{"type":"number"},"totalVoiceMinutes":{"type":"number"},"activeUsers":{"type":"number"}}}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["startWeek","currentWeek","trend"],"properties":{"startWeek":{"type":"number"},"currentWeek":{"type":"number"},"trend":{"type":"array","items":{"type":"object","required":["kiaiWeek","weekLabel","weekStart","totalXp","totalMessages","totalVoiceMinutes","activeUsers"],"properties":{"kiaiWeek":{"type":"number"},"weekLabel":{"type":"string"},"weekStart":{"type":"string"},"totalXp":{"type":"number"},"totalMessages":{"type":"number"},"totalVoiceMinutes":{"type":"number"},"activeUsers":{"type":"number"}}}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdStats","tags":["Stats"],"summary":"Get Server Stats"}},"/api/v3/{guildId}/denylist":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to get the denylist for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","users","roles","channels"],"properties":{"guildId":{"type":"string"},"users":{"type":"array","items":{"type":"object","required":["id","userId"],"properties":{"id":{"type":"string"},"userId":{"type":"string"}}}},"roles":{"type":"array","items":{"type":"object","required":["id","roleId"],"properties":{"id":{"type":"string"},"roleId":{"type":"string"}}}},"channels":{"type":"array","items":{"type":"object","required":["id","channelId"],"properties":{"id":{"type":"string"},"channelId":{"type":"string"}}}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","users","roles","channels"],"properties":{"guildId":{"type":"string"},"users":{"type":"array","items":{"type":"object","required":["id","userId"],"properties":{"id":{"type":"string"},"userId":{"type":"string"}}}},"roles":{"type":"array","items":{"type":"object","required":["id","roleId"],"properties":{"id":{"type":"string"},"roleId":{"type":"string"}}}},"channels":{"type":"array","items":{"type":"object","required":["id","channelId"],"properties":{"id":{"type":"string"},"channelId":{"type":"string"}}}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","users","roles","channels"],"properties":{"guildId":{"type":"string"},"users":{"type":"array","items":{"type":"object","required":["id","userId"],"properties":{"id":{"type":"string"},"userId":{"type":"string"}}}},"roles":{"type":"array","items":{"type":"object","required":["id","roleId"],"properties":{"id":{"type":"string"},"roleId":{"type":"string"}}}},"channels":{"type":"array","items":{"type":"object","required":["id","channelId"],"properties":{"id":{"type":"string"},"channelId":{"type":"string"}}}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdDenylist","tags":["Denylist"],"summary":"Get Denylist"},"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to create the denylist for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"guildId":{"type":"string"},"userId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","guildId","userId","roleId","channelId"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"guildId":{"type":"string"},"userId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","guildId","userId","roleId","channelId"]}},"text/plain":{"schema":{"type":"object","properties":{"id":{"type":"string"},"guildId":{"type":"string"},"userId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","guildId","userId","roleId","channelId"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdDenylist","tags":["Denylist"],"summary":"Create Denylist","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","id"],"properties":{"type":{"default":"user","description":"Type of denylist to create","type":"string","enum":["user","role","channel"]},"id":{"description":"ID of the user, role, or channel to deny","type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["type","id"],"properties":{"type":{"default":"user","description":"Type of denylist to create","type":"string","enum":["user","role","channel"]},"id":{"description":"ID of the user, role, or channel to deny","type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["type","id"],"properties":{"type":{"default":"user","description":"Type of denylist to create","type":"string","enum":["user","role","channel"]},"id":{"description":"ID of the user, role, or channel to deny","type":"string"}}}}}}},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdDenylist","tags":["Denylist"],"summary":"Delete All Denylists"}},"/api/v3/{guildId}/denylist/type/{type}":{"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"Type of denylist to delete","schema":{"type":"string","default":"user","enum":["user","role","channel"]},"in":"path","name":"type","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdDenylistTypeByType","tags":["Denylist"],"summary":"Delete All Denylists of a Type"}},"/api/v3/{guildId}/denylist/{type}/{id}":{"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"Type of denylist to delete","schema":{"type":"string","default":"user","enum":["user","role","channel","internal"]},"in":"path","name":"type","required":true},{"description":"ID of the denylist to delete","schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","channelId","roleId","userId","id"],"properties":{"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"userId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","channelId","roleId","userId","id"],"properties":{"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"userId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","channelId","roleId","userId","id"],"properties":{"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"userId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdDenylistByTypeById","tags":["Denylist"],"summary":"Delete Denylist by ID"}},"/api/v3/{guildId}/multipliers":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Guild ID to get multipliers for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","multipliers","global"],"properties":{"guildId":{"type":"string"},"multipliers":{"type":"array","items":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"global":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","multipliers","global"],"properties":{"guildId":{"type":"string"},"multipliers":{"type":"array","items":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"global":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","multipliers","global"],"properties":{"guildId":{"type":"string"},"multipliers":{"type":"array","items":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"global":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdMultipliers","tags":["Multipliers"],"summary":"Get Multipliers"},"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to create the multiplier for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}}}},"201":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdMultipliers","tags":["Multipliers"],"summary":"Create Multiplier","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["multiplier"],"properties":{"multiplier":{"description":"Multiplier to set","minimum":0.01,"maximum":10000000,"type":"number"},"expiresAt":{"description":"Date when the multiplier expires. If not provided, the multiplier will not expire.","anyOf":[{"description":"Date when the multiplier expires. If not provided, the multiplier will not expire.","type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"channelId":{"description":"ID of the channel to set the multiplier for. If provided, roleId must not be provided.","type":"string"},"roleId":{"description":"ID of the role to set the multiplier for. If provided, channelId must not be provided.","type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["multiplier"],"properties":{"multiplier":{"description":"Multiplier to set","minimum":0.01,"maximum":10000000,"type":"number"},"expiresAt":{"description":"Date when the multiplier expires. If not provided, the multiplier will not expire.","anyOf":[{"description":"Date when the multiplier expires. If not provided, the multiplier will not expire.","type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"channelId":{"description":"ID of the channel to set the multiplier for. If provided, roleId must not be provided.","type":"string"},"roleId":{"description":"ID of the role to set the multiplier for. If provided, channelId must not be provided.","type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["multiplier"],"properties":{"multiplier":{"description":"Multiplier to set","minimum":0.01,"maximum":10000000,"type":"number"},"expiresAt":{"description":"Date when the multiplier expires. If not provided, the multiplier will not expire.","anyOf":[{"description":"Date when the multiplier expires. If not provided, the multiplier will not expire.","type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"channelId":{"description":"ID of the channel to set the multiplier for. If provided, roleId must not be provided.","type":"string"},"roleId":{"description":"ID of the role to set the multiplier for. If provided, channelId must not be provided.","type":"string"}}}}}}},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to delete multipliers for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdMultipliers","tags":["Multipliers"],"summary":"Delete All Multipliers","description":"This will also set the global multiplier to 1"}},"/api/v3/{guildId}/multipliers/global":{"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to set the global multiplier for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["global"],"properties":{"global":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["global"],"properties":{"global":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["global"],"properties":{"global":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdMultipliersGlobal","tags":["Multipliers"],"summary":"Set Global Multiplier","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["multiplier"],"properties":{"multiplier":{"description":"Global multiplier to set","minimum":0.01,"maximum":10000000,"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["multiplier"],"properties":{"multiplier":{"description":"Global multiplier to set","minimum":0.01,"maximum":10000000,"type":"number"}}}},"text/plain":{"schema":{"type":"object","required":["multiplier"],"properties":{"multiplier":{"description":"Global multiplier to set","minimum":0.01,"maximum":10000000,"type":"number"}}}}}}}},"/api/v3/{guildId}/multipliers/{type}/{id}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to get the multiplier for","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"Type of multiplier to get (channel or role)","schema":{"type":"string","default":"channel","enum":["channel","role"]},"in":"path","name":"type","required":true},{"description":"ID of the channel or role to get the multiplier for","schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdMultipliersByTypeById","tags":["Multipliers"],"summary":"Get Multiplier by Channel or Role ID"},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string","default":"channel","enum":["channel","role"]},"in":"path","name":"type","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdMultipliersByTypeById","tags":["Multipliers"],"summary":"Delete Multiplier by Channel or Role ID"}},"/api/v3/{guildId}/multipliers/id/{id}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to get the multiplier for","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"ID of the multiplier to get","schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdMultipliersIdById","tags":["Multipliers"],"summary":"Get Multiplier by ID"},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","createdAt","updatedAt","guildId","channelId","roleId","multiplier","expiresAt"],"properties":{"id":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"guildId":{"type":"string"},"channelId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"roleId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"multiplier":{"type":"number"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdMultipliersIdById","tags":["Multipliers"],"summary":"Delete Multiplier by ID"}},"/api/v3/{guildId}/cooldowns":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","server","overrides"],"properties":{"guildId":{"type":"string"},"server":{"type":"number"},"overrides":{"type":"array","items":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","server","overrides"],"properties":{"guildId":{"type":"string"},"server":{"type":"number"},"overrides":{"type":"array","items":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["guildId","server","overrides"],"properties":{"guildId":{"type":"string"},"server":{"type":"number"},"overrides":{"type":"array","items":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdCooldowns","tags":["Cooldowns"],"summary":"Get Cooldowns"},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count","server"],"properties":{"count":{"type":"number"},"server":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count","server"],"properties":{"count":{"type":"number"},"server":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count","server"],"properties":{"count":{"type":"number"},"server":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdCooldowns","tags":["Cooldowns"],"summary":"Clear All Cooldowns"}},"/api/v3/{guildId}/cooldowns/server":{"put":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"putApiV3ByGuildIdCooldownsServer","tags":["Cooldowns"],"summary":"Set Server Cooldown","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"description":"Server cooldown in milliseconds","minimum":0,"maximum":2147483647,"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"description":"Server cooldown in milliseconds","minimum":0,"maximum":2147483647,"type":"number"}}}},"text/plain":{"schema":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"description":"Server cooldown in milliseconds","minimum":0,"maximum":2147483647,"type":"number"}}}}}}},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdCooldownsServer","tags":["Cooldowns"],"summary":"Clear Server Cooldown"}},"/api/v3/{guildId}/cooldowns/roles/{roleId}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdCooldownsRolesByRoleId","tags":["Cooldowns"],"summary":"Get Role Cooldown"},"put":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"putApiV3ByGuildIdCooldownsRolesByRoleId","tags":["Cooldowns"],"summary":"Set Role Cooldown","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"description":"Role cooldown in milliseconds","minimum":0,"maximum":2147483647,"type":"number"},"expiresAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"multipart/form-data":{"schema":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"description":"Role cooldown in milliseconds","minimum":0,"maximum":2147483647,"type":"number"},"expiresAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"text/plain":{"schema":{"type":"object","required":["cooldown"],"properties":{"cooldown":{"description":"Role cooldown in milliseconds","minimum":0,"maximum":2147483647,"type":"number"},"expiresAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}}}}},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","cooldown","roleId","expiresAt","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"cooldown":{"type":"number"},"roleId":{"type":"string"},"expiresAt":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdCooldownsRolesByRoleId","tags":["Cooldowns"],"summary":"Clear Role Cooldown"}},"/api/v3/{guildId}/rewards/capabilities":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["prestige","reversal","providers","reconciliation","types","limits"],"properties":{"prestige":{"type":"object","required":["enabled","automatic"],"properties":{"enabled":{"type":"boolean"},"automatic":{"type":"boolean"}}},"reversal":{"type":"object","required":["roles","money","nicknames"],"properties":{"roles":{"type":"boolean"},"money":{"type":"boolean"},"nicknames":{"type":"boolean"}}},"providers":{"type":"object","required":["unbelievaboat"],"properties":{"unbelievaboat":{"type":"object","required":["inGuild","authorized"],"properties":{"inGuild":{"type":"boolean"},"authorized":{"type":"boolean"}}}}},"reconciliation":{"type":"object","required":["kind","cooldownSeconds","active"],"properties":{"kind":{"const":"declarative","type":"string"},"cooldownSeconds":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"active":{"type":"boolean"}}},"types":{"type":"object","patternProperties":{"^(.*)$":{"type":"object","required":["kind","availability","premiumRequired","creatable","reason"],"properties":{"kind":{"default":"declarative","type":"string","enum":["declarative","imperative"]},"availability":{"default":"enabled","type":"string","enum":["enabled","preview","hidden"]},"premiumRequired":{"type":"boolean"},"creatable":{"type":"boolean"},"reason":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"limits":{"type":"object","required":["messageLength","nicknameLength","maximumTemporaryRoleDurationMs","maximumMoneyAmount","maximumWebhookEndpointLength","webhookHttpsOnly"],"properties":{"messageLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"nicknameLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumTemporaryRoleDurationMs":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumMoneyAmount":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumWebhookEndpointLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"webhookHttpsOnly":{"type":"boolean"}}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["prestige","reversal","providers","reconciliation","types","limits"],"properties":{"prestige":{"type":"object","required":["enabled","automatic"],"properties":{"enabled":{"type":"boolean"},"automatic":{"type":"boolean"}}},"reversal":{"type":"object","required":["roles","money","nicknames"],"properties":{"roles":{"type":"boolean"},"money":{"type":"boolean"},"nicknames":{"type":"boolean"}}},"providers":{"type":"object","required":["unbelievaboat"],"properties":{"unbelievaboat":{"type":"object","required":["inGuild","authorized"],"properties":{"inGuild":{"type":"boolean"},"authorized":{"type":"boolean"}}}}},"reconciliation":{"type":"object","required":["kind","cooldownSeconds","active"],"properties":{"kind":{"const":"declarative","type":"string"},"cooldownSeconds":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"active":{"type":"boolean"}}},"types":{"type":"object","patternProperties":{"^(.*)$":{"type":"object","required":["kind","availability","premiumRequired","creatable","reason"],"properties":{"kind":{"default":"declarative","type":"string","enum":["declarative","imperative"]},"availability":{"default":"enabled","type":"string","enum":["enabled","preview","hidden"]},"premiumRequired":{"type":"boolean"},"creatable":{"type":"boolean"},"reason":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"limits":{"type":"object","required":["messageLength","nicknameLength","maximumTemporaryRoleDurationMs","maximumMoneyAmount","maximumWebhookEndpointLength","webhookHttpsOnly"],"properties":{"messageLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"nicknameLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumTemporaryRoleDurationMs":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumMoneyAmount":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumWebhookEndpointLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"webhookHttpsOnly":{"type":"boolean"}}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["prestige","reversal","providers","reconciliation","types","limits"],"properties":{"prestige":{"type":"object","required":["enabled","automatic"],"properties":{"enabled":{"type":"boolean"},"automatic":{"type":"boolean"}}},"reversal":{"type":"object","required":["roles","money","nicknames"],"properties":{"roles":{"type":"boolean"},"money":{"type":"boolean"},"nicknames":{"type":"boolean"}}},"providers":{"type":"object","required":["unbelievaboat"],"properties":{"unbelievaboat":{"type":"object","required":["inGuild","authorized"],"properties":{"inGuild":{"type":"boolean"},"authorized":{"type":"boolean"}}}}},"reconciliation":{"type":"object","required":["kind","cooldownSeconds","active"],"properties":{"kind":{"const":"declarative","type":"string"},"cooldownSeconds":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"active":{"type":"boolean"}}},"types":{"type":"object","patternProperties":{"^(.*)$":{"type":"object","required":["kind","availability","premiumRequired","creatable","reason"],"properties":{"kind":{"default":"declarative","type":"string","enum":["declarative","imperative"]},"availability":{"default":"enabled","type":"string","enum":["enabled","preview","hidden"]},"premiumRequired":{"type":"boolean"},"creatable":{"type":"boolean"},"reason":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"limits":{"type":"object","required":["messageLength","nicknameLength","maximumTemporaryRoleDurationMs","maximumMoneyAmount","maximumWebhookEndpointLength","webhookHttpsOnly"],"properties":{"messageLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"nicknameLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumTemporaryRoleDurationMs":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumMoneyAmount":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"maximumWebhookEndpointLength":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},"webhookHttpsOnly":{"type":"boolean"}}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getRewardCapabilities","tags":["Rewards"],"summary":"Get Reward Capabilities","description":"Returns guild-specific reward availability, premium and provider gates, prestige and reversal settings, reconciliation cooldown and active state, and public input limits. Check this resource before presenting reward creation controls. Existing rewards remain readable, replaceable, and removable when their type is no longer creatable."}},"/api/v3/{guildId}/rewards":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"description":"Filter role rewards by path. Requires the guild's rewards-path experiment.","schema":{"type":"string","pattern":"^c[a-z0-9]{24}$"},"in":"query","name":"rewardPathId","required":false},{"description":"Registered reward type key","schema":{"type":"string","enum":["ROLE","MONEY","MESSAGE","NICKNAME","WEBHOOK"]},"in":"query","name":"type","required":false},{"description":"Return only rewards at this exact level","schema":{"minimum":0,"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Return only rewards at this exact level","minimum":0,"type":"integer"}]},"in":"query","name":"level","required":false},{"description":"Return only rewards at this exact prestige","schema":{"minimum":0,"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Return only rewards at this exact prestige","minimum":0,"type":"integer"}]},"in":"query","name":"prestige","required":false}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"listRewards","tags":["Rewards"],"summary":"List Rewards","description":"Lists stored reward definitions in deterministic prestige, level, type, and ID order. Optional filters use exact matches. A null prestige in a resource means the reward is level-only."},"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true}],"responses":{"201":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"createReward","tags":["Rewards"],"summary":"Create Reward","description":"Creates a new reward definition and always allocates a new ID, including when an identical definition already exists. The response Location header identifies the new resource. Creation enforces feature-preview, premium, provider, guild resource, prestige, and webhook URL requirements.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","description":"Reward path in this guild. Null means Everyone. Omit on replacement to preserve the current assignment. Supplying this field requires the guild's rewards-path experiment.","type":"string"},{"type":"null"}]},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MONEY","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MESSAGE","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"NICKNAME","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"WEBHOOK","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["endpointUrl"],"properties":{"endpointUrl":{"description":"Public HTTPS endpoint receiving signed level-up reward events","format":"uri","minLength":1,"maxLength":2048,"examples":["https://example.com/kiai/rewards"],"type":"string"}}}}}]}},"multipart/form-data":{"schema":{"anyOf":[{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","description":"Reward path in this guild. Null means Everyone. Omit on replacement to preserve the current assignment. Supplying this field requires the guild's rewards-path experiment.","type":"string"},{"type":"null"}]},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MONEY","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MESSAGE","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"NICKNAME","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"WEBHOOK","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["endpointUrl"],"properties":{"endpointUrl":{"description":"Public HTTPS endpoint receiving signed level-up reward events","format":"uri","minLength":1,"maxLength":2048,"examples":["https://example.com/kiai/rewards"],"type":"string"}}}}}]}},"text/plain":{"schema":{"anyOf":[{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","description":"Reward path in this guild. Null means Everyone. Omit on replacement to preserve the current assignment. Supplying this field requires the guild's rewards-path experiment.","type":"string"},{"type":"null"}]},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MONEY","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MESSAGE","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"NICKNAME","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"WEBHOOK","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["endpointUrl"],"properties":{"endpointUrl":{"description":"Public HTTPS endpoint receiving signed level-up reward events","format":"uri","minLength":1,"maxLength":2048,"examples":["https://example.com/kiai/rewards"],"type":"string"}}}}}]}}}}}},"/api/v3/{guildId}/rewards/reconciliation-jobs":{"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true}],"responses":{"202":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","status"],"properties":{"id":{"type":"string"},"status":{"const":"queued","type":"string"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","status"],"properties":{"id":{"type":"string"},"status":{"const":"queued","type":"string"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","status"],"properties":{"id":{"type":"string"},"status":{"const":"queued","type":"string"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"queueRewardReconciliation","tags":["Rewards"],"summary":"Queue Reward Reconciliation","description":"Queues a server-wide reconciliation of declarative role rewards against current member levels. It does not replay imperative money, message, nickname, or webhook rewards. The guild has a shared five-minute dashboard/API cooldown, and only one reconciliation may be queued or running at a time."}},"/api/v3/{guildId}/rewards/reconciliation-jobs/{jobId}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"jobId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","status","synced","failed","total"],"properties":{"id":{"type":"string"},"status":{"default":"queued","type":"string","enum":["queued","running","completed","failed"]},"synced":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]},"failed":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]},"total":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","status","synced","failed","total"],"properties":{"id":{"type":"string"},"status":{"default":"queued","type":"string","enum":["queued","running","completed","failed"]},"synced":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]},"failed":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]},"total":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","status","synced","failed","total"],"properties":{"id":{"type":"string"},"status":{"default":"queued","type":"string","enum":["queued","running","completed","failed"]},"synced":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]},"failed":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]},"total":{"nullable":true,"anyOf":[{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getRewardReconciliationJob","tags":["Rewards"],"summary":"Get Reward Reconciliation Job","description":"Returns safe status and successful, failed, and total member counts for a reconciliation job created by the same API application in the same guild. Failed jobs do not expose worker error details. Polling records are retained for 24 hours after reaching a terminal state."}},"/api/v3/{guildId}/rewards/{rewardId}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"rewardId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getReward","tags":["Rewards"],"summary":"Get Reward","description":"Gets one reward by its persistent ID. Webhook rewards expose their verification public key but never the signing private key."},"put":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"rewardId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","required":["id","threshold","eligibility","type","rewardPathId","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MONEY","type":"string"},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"MESSAGE","type":"string"},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"NICKNAME","type":"string"},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["id","threshold","eligibility","type","config"],"properties":{"id":{"type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"type":{"const":"WEBHOOK","type":"string"},"config":{"type":"object","required":["endpointUrl","publicKey"],"properties":{"endpointUrl":{"description":"Configured public HTTPS webhook endpoint","type":"string"},"publicKey":{"description":"PEM-encoded Ed25519 public key used to verify webhook signatures","type":"string"}}}}}]}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"replaceReward","tags":["Rewards"],"summary":"Replace Reward","description":"Fully replaces a reward definition while preserving its ID. The reward type is immutable. Webhook signing keys are preserved when the endpoint or threshold changes. Send null for optional values that should be cleared. For role rewards, rewardPathId can assign a guild-owned path or be null for Everyone; omitting it preserves the assignment. Path operations require the guild's rewards-path experiment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","description":"Reward path in this guild. Null means Everyone. Omit on replacement to preserve the current assignment. Supplying this field requires the guild's rewards-path experiment.","type":"string"},{"type":"null"}]},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MONEY","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MESSAGE","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"NICKNAME","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"WEBHOOK","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["endpointUrl"],"properties":{"endpointUrl":{"description":"Public HTTPS endpoint receiving signed level-up reward events","format":"uri","minLength":1,"maxLength":2048,"examples":["https://example.com/kiai/rewards"],"type":"string"}}}}}]}},"multipart/form-data":{"schema":{"anyOf":[{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","description":"Reward path in this guild. Null means Everyone. Omit on replacement to preserve the current assignment. Supplying this field requires the guild's rewards-path experiment.","type":"string"},{"type":"null"}]},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MONEY","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MESSAGE","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"NICKNAME","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"WEBHOOK","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["endpointUrl"],"properties":{"endpointUrl":{"description":"Public HTTPS endpoint receiving signed level-up reward events","format":"uri","minLength":1,"maxLength":2048,"examples":["https://example.com/kiai/rewards"],"type":"string"}}}}}]}},"text/plain":{"schema":{"anyOf":[{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"ROLE","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","description":"Reward path in this guild. Null means Everyone. Omit on replacement to preserve the current assignment. Supplying this field requires the guild's rewards-path experiment.","type":"string"},{"type":"null"}]},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["roleId","operation","durationMs"],"properties":{"roleId":{"description":"Discord role managed by this reward","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},"operation":{"default":"ADD","description":"Whether reaching the threshold adds or removes the role","type":"string","enum":["ADD","REMOVE"]},"durationMs":{"nullable":true,"anyOf":[{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Duration of the role effect in milliseconds. Use null for a permanent effect.","minimum":1,"maximum":1209600000,"examples":[86400000],"type":"integer"}]},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MONEY","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["amount","destination"],"properties":{"amount":{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Amount credited through the configured economy provider","minimum":0,"maximum":2147483647,"examples":[500],"type":"integer"}]},"destination":{"default":"BANK","description":"Balance receiving the money reward","type":"string","enum":["BANK","WALLET"]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"MESSAGE","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["message","channelId"],"properties":{"message":{"description":"Message sent when the member crosses the threshold","minLength":1,"maxLength":200,"examples":["Congratulations {user.mention}, you reached level {level}!"],"type":"string"},"channelId":{"nullable":true,"anyOf":[{"description":"Guild text channel receiving the message. Use null for the channel where XP was earned.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"NICKNAME","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["format"],"properties":{"format":{"description":"Nickname format supporting Kiai user and level placeholders","minLength":1,"maxLength":100,"examples":["[{level}] {user.globalName}"],"type":"string"}}}}},{"type":"object","required":["type","threshold","eligibility","config"],"properties":{"type":{"const":"WEBHOOK","type":"string"},"threshold":{"type":"object","required":["level","prestige"],"properties":{"level":{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Level at which the reward threshold is reached","minimum":0,"examples":[10],"type":"integer"}]},"prestige":{"nullable":true,"anyOf":[{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"anyOf":[{"format":"integer","default":0,"type":"string"},{"description":"Prestige at which the threshold is reached. Use null for a level-only reward.","minimum":0,"examples":[1],"type":"integer"}]},{"type":"null"}]}}},"eligibility":{"type":"object","required":["requiredRoleId"],"properties":{"requiredRoleId":{"nullable":true,"anyOf":[{"description":"Discord role required to receive the reward. Use null for no role requirement.","pattern":"^[0-9]{17,20}$","examples":["123456789012345678"],"type":"string"},{"type":"null"}]}}},"config":{"type":"object","required":["endpointUrl"],"properties":{"endpointUrl":{"description":"Public HTTPS endpoint receiving signed level-up reward events","format":"uri","minLength":1,"maxLength":2048,"examples":["https://example.com/kiai/rewards"],"type":"string"}}}}}]}}}}},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"Discord snowflake ID","examples":["123456789012345678"],"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"rewardId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"const":true,"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"const":true,"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"const":true,"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteReward","tags":["Rewards"],"summary":"Delete Reward","description":"Deletes one reward definition. Deletion does not undo effects already delivered, and existing temporary role effects retain the snapshots required for expiry cleanup."}},"/api/v3/{guildId}/rewards/paths":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"listRewardPaths","tags":["Reward Paths"],"summary":"List Reward Paths","description":"Lists active and archived paths. Requires the Rewards permission and the guild's rewards-path experiment."},"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true}],"responses":{"201":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"createRewardPath","tags":["Reward Paths"],"summary":"Create Reward Path","description":"Creates a named reward ladder, with at most 25 paths per guild. Names must be unique ignoring case. Requires the Rewards permission and the guild's rewards-path experiment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"multipart/form-data":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"text/plain":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}}}}}},"/api/v3/{guildId}/rewards/paths/settings":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getRewardPathSettings","tags":["Reward Paths"],"summary":"Get Reward Path Settings","description":"Returns whether members and administrators may replace an existing selection. Requires the Rewards permission and the guild's rewards-path experiment."},"put":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"setRewardPathSettings","tags":["Reward Paths"],"summary":"Set Reward Path Settings","description":"Enables or disables rechoosing. Existing selections and XP remain unchanged. Defaults to false. Requires the Rewards permission and the guild's rewards-path experiment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"multipart/form-data":{"schema":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}},"text/plain":{"schema":{"type":"object","required":["allowRewardPathSwitching"],"properties":{"allowRewardPathSwitching":{"type":"boolean"}}}}}}}},"/api/v3/{guildId}/rewards/paths/members/{userId}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["userId","rewardPathId"],"properties":{"userId":{"pattern":"^[0-9]{17,20}$","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","type":"string"},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["userId","rewardPathId"],"properties":{"userId":{"pattern":"^[0-9]{17,20}$","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","type":"string"},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["userId","rewardPathId"],"properties":{"userId":{"pattern":"^[0-9]{17,20}$","type":"string"},"rewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","type":"string"},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getMemberRewardPath","tags":["Reward Paths"],"summary":"Get Member Reward Path","description":"Returns the stored selection, or null if the member has no selection or stored progress. Does not create member data. Requires the Rewards permission and the guild's rewards-path experiment, not a user experiment."},"put":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["userId","rewardPathId","synced"],"properties":{"userId":{"pattern":"^[0-9]{17,20}$","type":"string"},"rewardPathId":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"synced":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["userId","rewardPathId","synced"],"properties":{"userId":{"pattern":"^[0-9]{17,20}$","type":"string"},"rewardPathId":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"synced":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["userId","rewardPathId","synced"],"properties":{"userId":{"pattern":"^[0-9]{17,20}$","type":"string"},"rewardPathId":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"synced":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"setMemberRewardPath","tags":["Reward Paths"],"summary":"Assign Member Reward Path","description":"Administrator-style assignment: bypasses initial milestone eligibility, but never the rechoosing setting, guild ownership, or archive restriction. XP and prestige are unchanged; role rewards are reconciled without replaying milestone effects. Optional expectedRewardPathId rejects stale writes (null expects no selection). A false synced result means the selection was saved but role sync needs recovery. Requires the Rewards permission and the guild's rewards-path experiment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["rewardPathId"],"properties":{"rewardPathId":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"expectedRewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","type":"string"},{"type":"null"}]}}}},"multipart/form-data":{"schema":{"type":"object","required":["rewardPathId"],"properties":{"rewardPathId":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"expectedRewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","type":"string"},{"type":"null"}]}}}},"text/plain":{"schema":{"type":"object","required":["rewardPathId"],"properties":{"rewardPathId":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"expectedRewardPathId":{"nullable":true,"anyOf":[{"pattern":"^c[a-z0-9]{24}$","type":"string"},{"type":"null"}]}}}}}}}},"/api/v3/{guildId}/rewards/paths/{pathId}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string","pattern":"^c[a-z0-9]{24}$"},"in":"path","name":"pathId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getRewardPath","tags":["Reward Paths"],"summary":"Get Reward Path","description":"Gets one guild-owned path, including archived paths. Requires the Rewards permission and the guild's rewards-path experiment."},"put":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string","pattern":"^[0-9]{17,20}$"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string","pattern":"^c[a-z0-9]{24}$"},"in":"path","name":"pathId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","name","description","emoji","archived"],"properties":{"id":{"pattern":"^c[a-z0-9]{24}$","type":"string"},"guildId":{"pattern":"^[0-9]{17,20}$","type":"string"},"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"replaceRewardPath","tags":["Reward Paths"],"summary":"Replace Reward Path","description":"Replaces path metadata. Set archived to true to prevent new selections while preserving current members and rewards; false reopens selection. Paths are archived, not deleted. Requires the Rewards permission and the guild's rewards-path experiment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","description","emoji","archived"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"multipart/form-data":{"schema":{"type":"object","required":["name","description","emoji","archived"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}},"text/plain":{"schema":{"type":"object","required":["name","description","emoji","archived"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"},"description":{"maxLength":200,"type":"string"},"emoji":{"maxLength":16,"type":"string"},"archived":{"type":"boolean"}}}}}}}},"/api/v3/{guildId}/leaderboard-roles":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to get leaderboard roles for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","roleId","type","time"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"roleId":{"type":"string"},"type":{"anyOf":[{"const":"FIRST","type":"string"},{"const":"SECOND","type":"string"},{"const":"THIRD","type":"string"},{"const":"FIRST_THROUGH_THIRD","type":"string"},{"const":"FIRST_THROUGH_FIFTH","type":"string"}]},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","roleId","type","time"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"roleId":{"type":"string"},"type":{"anyOf":[{"const":"FIRST","type":"string"},{"const":"SECOND","type":"string"},{"const":"THIRD","type":"string"},{"const":"FIRST_THROUGH_THIRD","type":"string"},{"const":"FIRST_THROUGH_FIFTH","type":"string"}]},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","roleId","type","time"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"roleId":{"type":"string"},"type":{"anyOf":[{"const":"FIRST","type":"string"},{"const":"SECOND","type":"string"},{"const":"THIRD","type":"string"},{"const":"FIRST_THROUGH_THIRD","type":"string"},{"const":"FIRST_THROUGH_FIFTH","type":"string"}]},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdLeaderboard-roles","tags":["Leaderboard Roles"],"summary":"Get Leaderboard Roles"},"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to create a leaderboard role for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdLeaderboard-roles","tags":["Leaderboard Roles"],"summary":"Create Leaderboard Role","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["roleId","type","time"],"properties":{"roleId":{"description":"ID of the role to create a leaderboard role for","type":"string"},"type":{"default":"FIRST","type":"string","enum":["FIRST","SECOND","THIRD","FIRST_THROUGH_THIRD","FIRST_THROUGH_FIFTH"]},"time":{"default":"ALL","type":"string","enum":["ALL","WEEK","MONTH"]}}}},"multipart/form-data":{"schema":{"type":"object","required":["roleId","type","time"],"properties":{"roleId":{"description":"ID of the role to create a leaderboard role for","type":"string"},"type":{"default":"FIRST","type":"string","enum":["FIRST","SECOND","THIRD","FIRST_THROUGH_THIRD","FIRST_THROUGH_FIFTH"]},"time":{"default":"ALL","type":"string","enum":["ALL","WEEK","MONTH"]}}}},"text/plain":{"schema":{"type":"object","required":["roleId","type","time"],"properties":{"roleId":{"description":"ID of the role to create a leaderboard role for","type":"string"},"type":{"default":"FIRST","type":"string","enum":["FIRST","SECOND","THIRD","FIRST_THROUGH_THIRD","FIRST_THROUGH_FIFTH"]},"time":{"default":"ALL","type":"string","enum":["ALL","WEEK","MONTH"]}}}}}}},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to delete all leaderboard roles for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["count"],"properties":{"count":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdLeaderboard-roles","tags":["Leaderboard Roles"],"summary":"Delete All Leaderboard Roles"}},"/api/v3/{guildId}/leaderboard-roles/sync":{"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success","roles"],"properties":{"success":{"type":"boolean"},"roles":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success","roles"],"properties":{"success":{"type":"boolean"},"roles":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success","roles"],"properties":{"success":{"type":"boolean"},"roles":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdLeaderboard-rolesSync","tags":["Leaderboard Roles"],"summary":"Sync Leaderboard Roles"}},"/api/v3/{guildId}/leaderboard-roles/{roleId}":{"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to delete leaderboard role for","schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"description":"ID of the leaderboard role to delete","schema":{"type":"string"},"in":"path","name":"roleId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdLeaderboard-rolesByRoleId","tags":["Leaderboard Roles"],"summary":"Delete Leaderboard Role"}},"/api/v3/{guildId}/auto-leaderboards":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdAuto-leaderboards","tags":["Auto Leaderboards"],"summary":"Get Auto Leaderboards"},"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdAuto-leaderboards","tags":["Auto Leaderboards"],"summary":"Create Auto Leaderboard","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["channelId","type","time"],"properties":{"channelId":{"type":"string"},"type":{"anyOf":[{"const":"xp","type":"string"},{"const":"message","type":"string"},{"const":"voice","type":"string"},{"const":"streak","type":"string"}]},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"maxLength":800,"type":"string"},{"type":"null"}]}}}},"multipart/form-data":{"schema":{"type":"object","required":["channelId","type","time"],"properties":{"channelId":{"type":"string"},"type":{"anyOf":[{"const":"xp","type":"string"},{"const":"message","type":"string"},{"const":"voice","type":"string"},{"const":"streak","type":"string"}]},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"maxLength":800,"type":"string"},{"type":"null"}]}}}},"text/plain":{"schema":{"type":"object","required":["channelId","type","time"],"properties":{"channelId":{"type":"string"},"type":{"anyOf":[{"const":"xp","type":"string"},{"const":"message","type":"string"},{"const":"voice","type":"string"},{"const":"streak","type":"string"}]},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"maxLength":800,"type":"string"},{"type":"null"}]}}}}}}}},"/api/v3/{guildId}/auto-leaderboards/{id}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdAuto-leaderboardsById","tags":["Auto Leaderboards"],"summary":"Get Auto Leaderboard"},"delete":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","guildId","channelId","messageId","type","time","description"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"channelId":{"type":"string"},"messageId":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"time":{"anyOf":[{"const":"ALL","type":"string"},{"const":"WEEK","type":"string"},{"const":"MONTH","type":"string"}]},"description":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"deleteApiV3ByGuildIdAuto-leaderboardsById","tags":["Auto Leaderboards"],"summary":"Delete Auto Leaderboard"}},"/api/v3/{guildId}/level-up-messages":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdLevel-up-messages","tags":["Level-Up Messages"],"summary":"Get Level-Up Messages"}},"/api/v3/{guildId}/level-up-messages/base":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdLevel-up-messagesBase","tags":["Level-Up Messages"],"summary":"Get Base Level-Up Message"}},"/api/v3/{guildId}/level-up-messages/{level}":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"minimum":0,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"type":"integer"}]},"in":"path","name":"level","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["messageKitData"],"properties":{"id":{"type":"string"},"guildId":{"type":"string"},"level":{"type":"number"},"messageKitData":{},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdLevel-up-messagesByLevel","tags":["Level-Up Messages"],"summary":"Get Level-Specific Level-Up Message"}},"/api/v3/{guildId}/export":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["levels","guild"],"properties":{"levels":{"type":"array","items":{"type":"object","required":["userId","guildId","avatarUrl","createdAt","updatedAt","xp","prestige","messagesSent","voiceMinutes","rankCardBackground","lastXp","reactionsGivenToday","xpToday","currentXpStreak","streakDoneToday"],"properties":{"userId":{"type":"string"},"guildId":{"type":"string"},"avatarUrl":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"xp":{"type":"number"},"prestige":{"type":"number"},"messagesSent":{"type":"number"},"voiceMinutes":{"type":"number"},"rankCardBackground":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"lastXp":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"reactionsGivenToday":{"type":"number"},"xpToday":{"type":"number"},"currentXpStreak":{"type":"number"},"streakDoneToday":{"type":"boolean"}}}},"guild":{"type":"object","required":["id","levelUpChannel","levelUpMessages","cooldown","resetXpOnLeave","resetXpOnBan","xpFormula","voiceXpEnabled","voiceXpPerMinute","stackRoleRewards","roleRewards","denylists","multipliers"],"properties":{"id":{"type":"string"},"levelUpChannel":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"levelUpMessages":{"type":"array","items":{}},"cooldown":{"type":"number"},"resetXpOnLeave":{"type":"boolean"},"resetXpOnBan":{"type":"boolean"},"xpFormula":{"type":"string"},"voiceXpEnabled":{"type":"boolean"},"voiceXpPerMinute":{"type":"number"},"stackRoleRewards":{"type":"boolean"},"roleRewards":{"type":"array","items":{}},"denylists":{"type":"array","items":{}},"multipliers":{"type":"array","items":{}}}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["levels","guild"],"properties":{"levels":{"type":"array","items":{"type":"object","required":["userId","guildId","avatarUrl","createdAt","updatedAt","xp","prestige","messagesSent","voiceMinutes","rankCardBackground","lastXp","reactionsGivenToday","xpToday","currentXpStreak","streakDoneToday"],"properties":{"userId":{"type":"string"},"guildId":{"type":"string"},"avatarUrl":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"xp":{"type":"number"},"prestige":{"type":"number"},"messagesSent":{"type":"number"},"voiceMinutes":{"type":"number"},"rankCardBackground":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"lastXp":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"reactionsGivenToday":{"type":"number"},"xpToday":{"type":"number"},"currentXpStreak":{"type":"number"},"streakDoneToday":{"type":"boolean"}}}},"guild":{"type":"object","required":["id","levelUpChannel","levelUpMessages","cooldown","resetXpOnLeave","resetXpOnBan","xpFormula","voiceXpEnabled","voiceXpPerMinute","stackRoleRewards","roleRewards","denylists","multipliers"],"properties":{"id":{"type":"string"},"levelUpChannel":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"levelUpMessages":{"type":"array","items":{}},"cooldown":{"type":"number"},"resetXpOnLeave":{"type":"boolean"},"resetXpOnBan":{"type":"boolean"},"xpFormula":{"type":"string"},"voiceXpEnabled":{"type":"boolean"},"voiceXpPerMinute":{"type":"number"},"stackRoleRewards":{"type":"boolean"},"roleRewards":{"type":"array","items":{}},"denylists":{"type":"array","items":{}},"multipliers":{"type":"array","items":{}}}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["levels","guild"],"properties":{"levels":{"type":"array","items":{"type":"object","required":["userId","guildId","avatarUrl","createdAt","updatedAt","xp","prestige","messagesSent","voiceMinutes","rankCardBackground","lastXp","reactionsGivenToday","xpToday","currentXpStreak","streakDoneToday"],"properties":{"userId":{"type":"string"},"guildId":{"type":"string"},"avatarUrl":{"type":"string"},"createdAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"updatedAt":{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},"xp":{"type":"number"},"prestige":{"type":"number"},"messagesSent":{"type":"number"},"voiceMinutes":{"type":"number"},"rankCardBackground":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"lastXp":{"nullable":true,"anyOf":[{"anyOf":[{"type":"Date"},{"format":"date-time","type":"string"},{"format":"date","type":"string"},{"type":"number"}]},{"type":"null"}]},"reactionsGivenToday":{"type":"number"},"xpToday":{"type":"number"},"currentXpStreak":{"type":"number"},"streakDoneToday":{"type":"boolean"}}}},"guild":{"type":"object","required":["id","levelUpChannel","levelUpMessages","cooldown","resetXpOnLeave","resetXpOnBan","xpFormula","voiceXpEnabled","voiceXpPerMinute","stackRoleRewards","roleRewards","denylists","multipliers"],"properties":{"id":{"type":"string"},"levelUpChannel":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"levelUpMessages":{"type":"array","items":{}},"cooldown":{"type":"number"},"resetXpOnLeave":{"type":"boolean"},"resetXpOnBan":{"type":"boolean"},"xpFormula":{"type":"string"},"voiceXpEnabled":{"type":"boolean"},"voiceXpPerMinute":{"type":"number"},"stackRoleRewards":{"type":"boolean"},"roleRewards":{"type":"array","items":{}},"denylists":{"type":"array","items":{}},"multipliers":{"type":"array","items":{}}}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdExport","tags":["Export"],"summary":"Export Leveling Data"}},"/api/v3/{guildId}/settings":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"description":"ID of the guild to get settings for","schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","messageXpEnabled","cooldown","minXp","maxXp","levelCap","resetXpOnLeave","resetXpOnBan","xpFormula","privateThreadXpEnabled","voiceXpEnabled","voiceXpPerMinute","voiceXpUserMinimum","xpDecayEnabled","xpDecayInterval","xpDecayAmount","xpDropEnabled","xpDropAmount","xpDropTimeBetweenDropsMin","xpDropTimeBetweenDropsMax","xpDropExpiresAfter","xpDropXpMin","xpDropXpMax","xpDropMessageKitData","xpDropClaimAction","reactionXpEnabled","reactionXpDailyMax","reactionXpGiven","reactionXpReceived","reactionXpGivenSuper","reactionXpReceivedSuper","allowRewardPathSwitching","stackRoleRewards","reverseRoleRewardsOnLevelDown","reverseMoneyRewardsOnLevelDown","reverseNicknameRewardsOnLevelDown","levelUpChannel","sendLevelUpMessages","autoDeleteLevelUpMessages","nicknameFormat","showNextRoleReward","rankCardTotalXp","leaderboardThumbnail","rankCardBackground","rankCardPrimaryColor","rankCardSecondaryColor","xpStreakEnabled","xpStreakChannel","xpStreakSendMessage","xpStreakMinDays","xpStreakDayRequired","xpStreakBonus","xpStreakMessage","prestigeEnabled","prestigeAutomatic","prestigeCustomName","prestigeRequirementFormula","weeklyLeaderboardsEnabled","monthlyLeaderboardsEnabled","weekStartsOnMonday","proxyTupperboxChannel","pluralKitEnabled","pluralBuddyEnabled","pluralGgEnabled","pluralKitFronterOnly","alwaysEphemeral"],"properties":{"id":{"type":"string"},"messageXpEnabled":{"type":"boolean"},"cooldown":{"type":"number"},"minXp":{"type":"number"},"maxXp":{"type":"number"},"levelCap":{"anyOf":[{"type":"number"},{"type":"null"}]},"resetXpOnLeave":{"type":"boolean"},"resetXpOnBan":{"type":"boolean"},"xpFormula":{"type":"string"},"privateThreadXpEnabled":{"type":"boolean"},"voiceXpEnabled":{"type":"boolean"},"voiceXpPerMinute":{"type":"number"},"voiceXpUserMinimum":{"type":"number"},"xpDecayEnabled":{"type":"boolean"},"xpDecayInterval":{"type":"number"},"xpDecayAmount":{"type":"number"},"xpDropEnabled":{"type":"boolean"},"xpDropAmount":{"type":"number"},"xpDropTimeBetweenDropsMin":{"type":"number"},"xpDropTimeBetweenDropsMax":{"type":"number"},"xpDropExpiresAfter":{"type":"number"},"xpDropXpMin":{"type":"number"},"xpDropXpMax":{"type":"number"},"xpDropMessageKitData":{},"xpDropClaimAction":{"type":"string"},"reactionXpEnabled":{"type":"boolean"},"reactionXpDailyMax":{"type":"number"},"reactionXpGiven":{"type":"number"},"reactionXpReceived":{"type":"number"},"reactionXpGivenSuper":{"type":"number"},"reactionXpReceivedSuper":{"type":"number"},"allowRewardPathSwitching":{"type":"boolean"},"stackRoleRewards":{"type":"boolean"},"reverseRoleRewardsOnLevelDown":{"type":"boolean"},"reverseMoneyRewardsOnLevelDown":{"type":"boolean"},"reverseNicknameRewardsOnLevelDown":{"type":"boolean"},"levelUpChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendLevelUpMessages":{"type":"boolean"},"autoDeleteLevelUpMessages":{"type":"boolean"},"nicknameFormat":{"anyOf":[{"type":"string"},{"type":"null"}]},"showNextRoleReward":{"type":"boolean"},"rankCardTotalXp":{"type":"boolean"},"leaderboardThumbnail":{"type":"boolean"},"rankCardBackground":{"anyOf":[{"type":"string"},{"type":"null"}]},"rankCardPrimaryColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"rankCardSecondaryColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"xpStreakEnabled":{"type":"boolean"},"xpStreakChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"xpStreakSendMessage":{"type":"boolean"},"xpStreakMinDays":{"type":"number"},"xpStreakDayRequired":{"type":"number"},"xpStreakBonus":{"type":"number"},"xpStreakMessage":{"type":"string"},"prestigeEnabled":{"type":"boolean"},"prestigeAutomatic":{"type":"boolean"},"prestigeCustomName":{"anyOf":[{"type":"string"},{"type":"null"}]},"prestigeRequirementFormula":{"type":"string"},"weeklyLeaderboardsEnabled":{"type":"boolean"},"monthlyLeaderboardsEnabled":{"type":"boolean"},"weekStartsOnMonday":{"type":"boolean"},"proxyTupperboxChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"pluralKitEnabled":{"type":"boolean"},"pluralBuddyEnabled":{"type":"boolean"},"pluralGgEnabled":{"type":"boolean"},"pluralKitFronterOnly":{"type":"boolean"},"alwaysEphemeral":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","messageXpEnabled","cooldown","minXp","maxXp","levelCap","resetXpOnLeave","resetXpOnBan","xpFormula","privateThreadXpEnabled","voiceXpEnabled","voiceXpPerMinute","voiceXpUserMinimum","xpDecayEnabled","xpDecayInterval","xpDecayAmount","xpDropEnabled","xpDropAmount","xpDropTimeBetweenDropsMin","xpDropTimeBetweenDropsMax","xpDropExpiresAfter","xpDropXpMin","xpDropXpMax","xpDropMessageKitData","xpDropClaimAction","reactionXpEnabled","reactionXpDailyMax","reactionXpGiven","reactionXpReceived","reactionXpGivenSuper","reactionXpReceivedSuper","allowRewardPathSwitching","stackRoleRewards","reverseRoleRewardsOnLevelDown","reverseMoneyRewardsOnLevelDown","reverseNicknameRewardsOnLevelDown","levelUpChannel","sendLevelUpMessages","autoDeleteLevelUpMessages","nicknameFormat","showNextRoleReward","rankCardTotalXp","leaderboardThumbnail","rankCardBackground","rankCardPrimaryColor","rankCardSecondaryColor","xpStreakEnabled","xpStreakChannel","xpStreakSendMessage","xpStreakMinDays","xpStreakDayRequired","xpStreakBonus","xpStreakMessage","prestigeEnabled","prestigeAutomatic","prestigeCustomName","prestigeRequirementFormula","weeklyLeaderboardsEnabled","monthlyLeaderboardsEnabled","weekStartsOnMonday","proxyTupperboxChannel","pluralKitEnabled","pluralBuddyEnabled","pluralGgEnabled","pluralKitFronterOnly","alwaysEphemeral"],"properties":{"id":{"type":"string"},"messageXpEnabled":{"type":"boolean"},"cooldown":{"type":"number"},"minXp":{"type":"number"},"maxXp":{"type":"number"},"levelCap":{"anyOf":[{"type":"number"},{"type":"null"}]},"resetXpOnLeave":{"type":"boolean"},"resetXpOnBan":{"type":"boolean"},"xpFormula":{"type":"string"},"privateThreadXpEnabled":{"type":"boolean"},"voiceXpEnabled":{"type":"boolean"},"voiceXpPerMinute":{"type":"number"},"voiceXpUserMinimum":{"type":"number"},"xpDecayEnabled":{"type":"boolean"},"xpDecayInterval":{"type":"number"},"xpDecayAmount":{"type":"number"},"xpDropEnabled":{"type":"boolean"},"xpDropAmount":{"type":"number"},"xpDropTimeBetweenDropsMin":{"type":"number"},"xpDropTimeBetweenDropsMax":{"type":"number"},"xpDropExpiresAfter":{"type":"number"},"xpDropXpMin":{"type":"number"},"xpDropXpMax":{"type":"number"},"xpDropMessageKitData":{},"xpDropClaimAction":{"type":"string"},"reactionXpEnabled":{"type":"boolean"},"reactionXpDailyMax":{"type":"number"},"reactionXpGiven":{"type":"number"},"reactionXpReceived":{"type":"number"},"reactionXpGivenSuper":{"type":"number"},"reactionXpReceivedSuper":{"type":"number"},"allowRewardPathSwitching":{"type":"boolean"},"stackRoleRewards":{"type":"boolean"},"reverseRoleRewardsOnLevelDown":{"type":"boolean"},"reverseMoneyRewardsOnLevelDown":{"type":"boolean"},"reverseNicknameRewardsOnLevelDown":{"type":"boolean"},"levelUpChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendLevelUpMessages":{"type":"boolean"},"autoDeleteLevelUpMessages":{"type":"boolean"},"nicknameFormat":{"anyOf":[{"type":"string"},{"type":"null"}]},"showNextRoleReward":{"type":"boolean"},"rankCardTotalXp":{"type":"boolean"},"leaderboardThumbnail":{"type":"boolean"},"rankCardBackground":{"anyOf":[{"type":"string"},{"type":"null"}]},"rankCardPrimaryColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"rankCardSecondaryColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"xpStreakEnabled":{"type":"boolean"},"xpStreakChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"xpStreakSendMessage":{"type":"boolean"},"xpStreakMinDays":{"type":"number"},"xpStreakDayRequired":{"type":"number"},"xpStreakBonus":{"type":"number"},"xpStreakMessage":{"type":"string"},"prestigeEnabled":{"type":"boolean"},"prestigeAutomatic":{"type":"boolean"},"prestigeCustomName":{"anyOf":[{"type":"string"},{"type":"null"}]},"prestigeRequirementFormula":{"type":"string"},"weeklyLeaderboardsEnabled":{"type":"boolean"},"monthlyLeaderboardsEnabled":{"type":"boolean"},"weekStartsOnMonday":{"type":"boolean"},"proxyTupperboxChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"pluralKitEnabled":{"type":"boolean"},"pluralBuddyEnabled":{"type":"boolean"},"pluralGgEnabled":{"type":"boolean"},"pluralKitFronterOnly":{"type":"boolean"},"alwaysEphemeral":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","messageXpEnabled","cooldown","minXp","maxXp","levelCap","resetXpOnLeave","resetXpOnBan","xpFormula","privateThreadXpEnabled","voiceXpEnabled","voiceXpPerMinute","voiceXpUserMinimum","xpDecayEnabled","xpDecayInterval","xpDecayAmount","xpDropEnabled","xpDropAmount","xpDropTimeBetweenDropsMin","xpDropTimeBetweenDropsMax","xpDropExpiresAfter","xpDropXpMin","xpDropXpMax","xpDropMessageKitData","xpDropClaimAction","reactionXpEnabled","reactionXpDailyMax","reactionXpGiven","reactionXpReceived","reactionXpGivenSuper","reactionXpReceivedSuper","allowRewardPathSwitching","stackRoleRewards","reverseRoleRewardsOnLevelDown","reverseMoneyRewardsOnLevelDown","reverseNicknameRewardsOnLevelDown","levelUpChannel","sendLevelUpMessages","autoDeleteLevelUpMessages","nicknameFormat","showNextRoleReward","rankCardTotalXp","leaderboardThumbnail","rankCardBackground","rankCardPrimaryColor","rankCardSecondaryColor","xpStreakEnabled","xpStreakChannel","xpStreakSendMessage","xpStreakMinDays","xpStreakDayRequired","xpStreakBonus","xpStreakMessage","prestigeEnabled","prestigeAutomatic","prestigeCustomName","prestigeRequirementFormula","weeklyLeaderboardsEnabled","monthlyLeaderboardsEnabled","weekStartsOnMonday","proxyTupperboxChannel","pluralKitEnabled","pluralBuddyEnabled","pluralGgEnabled","pluralKitFronterOnly","alwaysEphemeral"],"properties":{"id":{"type":"string"},"messageXpEnabled":{"type":"boolean"},"cooldown":{"type":"number"},"minXp":{"type":"number"},"maxXp":{"type":"number"},"levelCap":{"anyOf":[{"type":"number"},{"type":"null"}]},"resetXpOnLeave":{"type":"boolean"},"resetXpOnBan":{"type":"boolean"},"xpFormula":{"type":"string"},"privateThreadXpEnabled":{"type":"boolean"},"voiceXpEnabled":{"type":"boolean"},"voiceXpPerMinute":{"type":"number"},"voiceXpUserMinimum":{"type":"number"},"xpDecayEnabled":{"type":"boolean"},"xpDecayInterval":{"type":"number"},"xpDecayAmount":{"type":"number"},"xpDropEnabled":{"type":"boolean"},"xpDropAmount":{"type":"number"},"xpDropTimeBetweenDropsMin":{"type":"number"},"xpDropTimeBetweenDropsMax":{"type":"number"},"xpDropExpiresAfter":{"type":"number"},"xpDropXpMin":{"type":"number"},"xpDropXpMax":{"type":"number"},"xpDropMessageKitData":{},"xpDropClaimAction":{"type":"string"},"reactionXpEnabled":{"type":"boolean"},"reactionXpDailyMax":{"type":"number"},"reactionXpGiven":{"type":"number"},"reactionXpReceived":{"type":"number"},"reactionXpGivenSuper":{"type":"number"},"reactionXpReceivedSuper":{"type":"number"},"allowRewardPathSwitching":{"type":"boolean"},"stackRoleRewards":{"type":"boolean"},"reverseRoleRewardsOnLevelDown":{"type":"boolean"},"reverseMoneyRewardsOnLevelDown":{"type":"boolean"},"reverseNicknameRewardsOnLevelDown":{"type":"boolean"},"levelUpChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendLevelUpMessages":{"type":"boolean"},"autoDeleteLevelUpMessages":{"type":"boolean"},"nicknameFormat":{"anyOf":[{"type":"string"},{"type":"null"}]},"showNextRoleReward":{"type":"boolean"},"rankCardTotalXp":{"type":"boolean"},"leaderboardThumbnail":{"type":"boolean"},"rankCardBackground":{"anyOf":[{"type":"string"},{"type":"null"}]},"rankCardPrimaryColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"rankCardSecondaryColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"xpStreakEnabled":{"type":"boolean"},"xpStreakChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"xpStreakSendMessage":{"type":"boolean"},"xpStreakMinDays":{"type":"number"},"xpStreakDayRequired":{"type":"number"},"xpStreakBonus":{"type":"number"},"xpStreakMessage":{"type":"string"},"prestigeEnabled":{"type":"boolean"},"prestigeAutomatic":{"type":"boolean"},"prestigeCustomName":{"anyOf":[{"type":"string"},{"type":"null"}]},"prestigeRequirementFormula":{"type":"string"},"weeklyLeaderboardsEnabled":{"type":"boolean"},"monthlyLeaderboardsEnabled":{"type":"boolean"},"weekStartsOnMonday":{"type":"boolean"},"proxyTupperboxChannel":{"anyOf":[{"type":"string"},{"type":"null"}]},"pluralKitEnabled":{"type":"boolean"},"pluralBuddyEnabled":{"type":"boolean"},"pluralGgEnabled":{"type":"boolean"},"pluralKitFronterOnly":{"type":"boolean"},"alwaysEphemeral":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdSettings","tags":["Settings"],"summary":"Get Guild Settings"}},"/api/v3/{guildId}/premium":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["premium"],"properties":{"premium":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["premium"],"properties":{"premium":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["premium"],"properties":{"premium":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdPremium","tags":["Status"],"summary":"Get Guild Premium Status"}},"/api/v3/{guildId}/members/{userId}/premium":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["premium"],"properties":{"premium":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["premium"],"properties":{"premium":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["premium"],"properties":{"premium":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdMembersByUserIdPremium","tags":["Status"],"summary":"Get User Premium Status"}},"/api/v3/{guildId}/blacklist":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["blacklisted"],"properties":{"blacklisted":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["blacklisted"],"properties":{"blacklisted":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["blacklisted"],"properties":{"blacklisted":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdBlacklist","tags":["Status"],"summary":"Get Guild Blacklist Status"}},"/api/v3/{guildId}/members/{userId}/blacklist":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true},{"schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["blacklisted"],"properties":{"blacklisted":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["blacklisted"],"properties":{"blacklisted":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["blacklisted"],"properties":{"blacklisted":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdMembersByUserIdBlacklist","tags":["Status"],"summary":"Get User Blacklist Status"}},"/api/v3/{guildId}/feature-previews":{"get":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["key","status","enabled","fullyRolledOut"],"properties":{"key":{"type":"string"},"status":{"anyOf":[{"const":"enabled","type":"string"},{"const":"rollout","type":"string"},{"const":"disabled","type":"string"}]},"enabled":{"type":"boolean"},"fullyRolledOut":{"type":"boolean"}}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["key","status","enabled","fullyRolledOut"],"properties":{"key":{"type":"string"},"status":{"anyOf":[{"const":"enabled","type":"string"},{"const":"rollout","type":"string"},{"const":"disabled","type":"string"}]},"enabled":{"type":"boolean"},"fullyRolledOut":{"type":"boolean"}}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["key","status","enabled","fullyRolledOut"],"properties":{"key":{"type":"string"},"status":{"anyOf":[{"const":"enabled","type":"string"},{"const":"rollout","type":"string"},{"const":"disabled","type":"string"}]},"enabled":{"type":"boolean"},"fullyRolledOut":{"type":"boolean"}}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3ByGuildIdFeature-previews","tags":["Status"],"summary":"Get Feature Preview Statuses"}},"/api/v3/{guildId}/xp-drops":{"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true},{"schema":{"type":"string"},"in":"path","name":"guildId","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["dropped","channelId","amount"],"properties":{"dropped":{"type":"boolean"},"channelId":{"type":"string"},"amount":{"type":"number"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["dropped","channelId","amount"],"properties":{"dropped":{"type":"boolean"},"channelId":{"type":"string"},"amount":{"type":"number"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["dropped","channelId","amount"],"properties":{"dropped":{"type":"boolean"},"channelId":{"type":"string"},"amount":{"type":"number"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3ByGuildIdXp-drops","tags":["XP Drops"],"summary":"Trigger XP Drop","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["channelId","amount"],"properties":{"channelId":{"type":"string"},"amount":{"minimum":1,"maximum":100000000,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":100000000,"type":"integer"}]}}}},"multipart/form-data":{"schema":{"type":"object","required":["channelId","amount"],"properties":{"channelId":{"type":"string"},"amount":{"minimum":1,"maximum":100000000,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":100000000,"type":"integer"}]}}}},"text/plain":{"schema":{"type":"object","required":["channelId","amount"],"properties":{"channelId":{"type":"string"},"amount":{"minimum":1,"maximum":100000000,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":100000000,"type":"integer"}]}}}}}}}},"/api/v3/me":{"get":{"parameters":[{"name":"guildId","description":"The guild ID that you want to filter the data to","in":"query","required":false,"schema":{"type":"string"}},{"name":"locale","description":"Optional locale for permission descriptions (defaults to en-US)","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"rateLimit":{"type":"number"},"permissions":{"type":"array","items":{"type":"object","required":["guildId","permissions","permissionsArray","authorizedBy"],"properties":{"guildId":{"type":"string"},"permissions":{"type":"number"},"permissionsArray":{"type":"array","items":{"type":"object","required":["name","hex","int","description"],"properties":{"name":{"type":"string"},"hex":{"type":"string"},"int":{"type":"number"},"description":{"type":"string"}}}},"authorizedBy":{"type":"string"}}}}},"required":["id","userId","rateLimit","permissions"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"rateLimit":{"type":"number"},"permissions":{"type":"array","items":{"type":"object","required":["guildId","permissions","permissionsArray","authorizedBy"],"properties":{"guildId":{"type":"string"},"permissions":{"type":"number"},"permissionsArray":{"type":"array","items":{"type":"object","required":["name","hex","int","description"],"properties":{"name":{"type":"string"},"hex":{"type":"string"},"int":{"type":"number"},"description":{"type":"string"}}}},"authorizedBy":{"type":"string"}}}}},"required":["id","userId","rateLimit","permissions"]}},"text/plain":{"schema":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"rateLimit":{"type":"number"},"permissions":{"type":"array","items":{"type":"object","required":["guildId","permissions","permissionsArray","authorizedBy"],"properties":{"guildId":{"type":"string"},"permissions":{"type":"number"},"permissionsArray":{"type":"array","items":{"type":"object","required":["name","hex","int","description"],"properties":{"name":{"type":"string"},"hex":{"type":"string"},"int":{"type":"number"},"description":{"type":"string"}}}},"authorizedBy":{"type":"string"}}}}},"required":["id","userId","rateLimit","permissions"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"getApiV3Me","tags":["Misc"],"summary":"Get Self"}},"/api/v3/virtual_message":{"post":{"parameters":[{"description":"API application token","schema":{"type":"string"},"in":"header","name":"authorization","required":true}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}},"text/plain":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}}}},"required":["data"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Bad Request","type":"string"},"code":{"const":400,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Unauthorized","type":"string"},"code":{"const":401,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Forbidden","type":"string"},"code":{"const":403,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Not Found","type":"string"},"code":{"const":404,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Conflict","type":"string"},"code":{"const":409,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"429":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Ratelimited","type":"string"},"code":{"const":429,"type":"number"},"message":{"type":"string"},"resetAfter":{"anyOf":[{"format":"integer","default":0,"type":"string"},{"type":"integer"}]}},"required":["error","code","message","resetAfter"]}}}},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Internal Server Error","type":"string"},"code":{"const":500,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}},"599":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}},"text/plain":{"schema":{"type":"object","properties":{"error":{"const":"Kiai Error","type":"string"},"code":{"const":599,"type":"number"},"message":{"type":"string"}},"required":["error","code","message"]}}}}},"operationId":"postApiV3Virtual_message","tags":["Misc"],"summary":"Send a virtual message","description":"For use in integrating with other messaging platforms. XP gain will be calculated as if with a real message, including multipliers and cooldowns","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["channel","member","guild","message"],"properties":{"channel":{"type":"object","required":["id"],"properties":{"id":{"description":"ID of the channel. Can be used to give the virtual message a channel multipler.","type":"string"},"parentId":{"description":"ID of the parent channel","type":"string"}}},"member":{"type":"object","required":["id","roleIds"],"properties":{"id":{"description":"ID of the member. Used as the user to give XP to.","type":"string"},"roleIds":{"type":"array","items":{"description":"IDs of the roles the member has. Can be used to apply a role multiplier.","type":"string"}}}},"guild":{"type":"object","required":["id"],"properties":{"id":{"description":"Guild ID","type":"string"}}},"message":{"type":"object","required":["id"],"properties":{"id":{"description":"Message ID. Used to calculate how much XP a message will get.","type":"string"},"content":{"description":"Content of the message","type":"string"}}}}}},"multipart/form-data":{"schema":{"type":"object","required":["channel","member","guild","message"],"properties":{"channel":{"type":"object","required":["id"],"properties":{"id":{"description":"ID of the channel. Can be used to give the virtual message a channel multipler.","type":"string"},"parentId":{"description":"ID of the parent channel","type":"string"}}},"member":{"type":"object","required":["id","roleIds"],"properties":{"id":{"description":"ID of the member. Used as the user to give XP to.","type":"string"},"roleIds":{"type":"array","items":{"description":"IDs of the roles the member has. Can be used to apply a role multiplier.","type":"string"}}}},"guild":{"type":"object","required":["id"],"properties":{"id":{"description":"Guild ID","type":"string"}}},"message":{"type":"object","required":["id"],"properties":{"id":{"description":"Message ID. Used to calculate how much XP a message will get.","type":"string"},"content":{"description":"Content of the message","type":"string"}}}}}},"text/plain":{"schema":{"type":"object","required":["channel","member","guild","message"],"properties":{"channel":{"type":"object","required":["id"],"properties":{"id":{"description":"ID of the channel. Can be used to give the virtual message a channel multipler.","type":"string"},"parentId":{"description":"ID of the parent channel","type":"string"}}},"member":{"type":"object","required":["id","roleIds"],"properties":{"id":{"description":"ID of the member. Used as the user to give XP to.","type":"string"},"roleIds":{"type":"array","items":{"description":"IDs of the roles the member has. Can be used to apply a role multiplier.","type":"string"}}}},"guild":{"type":"object","required":["id"],"properties":{"id":{"description":"Guild ID","type":"string"}}},"message":{"type":"object","required":["id"],"properties":{"id":{"description":"Message ID. Used to calculate how much XP a message will get.","type":"string"},"content":{"description":"Content of the message","type":"string"}}}}}}}}}}}}