feat(rpc): animated dantotsu icon

This commit is contained in:
aayush262 2024-11-02 23:51:20 +05:30
parent 545abf1f9a
commit cddad8edf1
2 changed files with 2 additions and 10 deletions

View file

@ -70,7 +70,7 @@ object Discord {
const val application_Id = "1163925779692912771" const val application_Id = "1163925779692912771"
const val small_Image: String = const val small_Image: String =
"mp:external/GJEe4hKzr8w56IW6ZKQz43HFVEo8pOtA_C-dJiWwxKo/https/cdn.discordapp.com/app-icons/1163925779692912771/f6b42d41dfdf0b56fcc79d4a12d2ac66.png" "mp:external/9NqpMxXs4ZNQtMG42L7hqINW92GqqDxgxS9Oh0Sp880/%3Fsize%3D48%26quality%3Dlossless%26name%3DDantotsu/https/cdn.discordapp.com/emojis/1167344924874784828.gif"
const val small_Image_AniList: String = const val small_Image_AniList: String =
"mp:external/ORoccmSwMX55y1BUmiwf7OH9IlnztoO0MDpsGQnibpw/https/anilist.co/img/icons/icon.svg" "mp:external/ORoccmSwMX55y1BUmiwf7OH9IlnztoO0MDpsGQnibpw/https/anilist.co/img/icons/icon.svg"
} }

View file

@ -18,18 +18,10 @@ object Kitsu {
val headers = mapOf( val headers = mapOf(
"Content-Type" to "application/json", "Content-Type" to "application/json",
"Accept" to "application/json", "Accept" to "application/json",
"Accept-Encoding" to "gzip, deflate",
"Accept-Language" to "en-US,en;q=0.5",
"Host" to "kitsu.app",
"Connection" to "keep-alive",
"Origin" to "https://kitsu.app",
"Sec-Fetch-Dest" to "empty",
"Sec-Fetch-Mode" to "cors",
"Sec-Fetch-Site" to "cross-site",
) )
val response = tryWithSuspend { val response = tryWithSuspend {
val res = client.post( val res = client.post(
"https://kitsu.app/api/graphql", "https://kitsu.io/api/graphql",
headers, headers,
data = mapOf("query" to query) data = mapOf("query" to query)
) )