From 05a76ff7acdff30a5124dd46b465e3c2ebdccb5a Mon Sep 17 00:00:00 2001 From: Cilly Leang Date: Mon, 18 Aug 2025 01:44:39 +1000 Subject: [PATCH] fix(SlashCommandsFix): 8.18.0 - don't use new props --- canary/SlashCommandsFix/build.gradle.kts | 5 ++++- .../aliucord/coreplugins/slashcommandsfix/Patches.java | 10 ---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/canary/SlashCommandsFix/build.gradle.kts b/canary/SlashCommandsFix/build.gradle.kts index 5707059..f80c3bd 100644 --- a/canary/SlashCommandsFix/build.gradle.kts +++ b/canary/SlashCommandsFix/build.gradle.kts @@ -1,10 +1,13 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar -version = "7.16.2" +version = "8.18.0" description = "Beta backport of SlashCommandsFix" aliucord { changelog.set(""" + # 8.18.0 + * Don't use custom props anymore (core has them) + # 7.16.2 * Use new props diff --git a/canary/SlashCommandsFix/src/main/java/com/aliucord/coreplugins/slashcommandsfix/Patches.java b/canary/SlashCommandsFix/src/main/java/com/aliucord/coreplugins/slashcommandsfix/Patches.java index dcee32c..740e528 100644 --- a/canary/SlashCommandsFix/src/main/java/com/aliucord/coreplugins/slashcommandsfix/Patches.java +++ b/canary/SlashCommandsFix/src/main/java/com/aliucord/coreplugins/slashcommandsfix/Patches.java @@ -273,19 +273,9 @@ final class Patches { var applicationIndex = source.getFromCache(applicationIndexCache); if (!applicationIndex.isPresent()) { try { - var versionCode = 218111; - var versionString = "218.11 - rn"; - var userAgent = "Discord-Android/218111;RNA"; - var props = RNSuperProperties.getSuperProperties() - .put("client_version", versionString) - .put("client_build_number", versionCode); - var props64 = Base64.encodeToString(props.toString().getBytes(), 2); - // Request application index from API applicationIndex = Optional.of( Http.Request.newDiscordRNRequest(source.getEndpoint()) - .setHeader("User-Agent", userAgent) - .setHeader("X-Super-Properties", props64) .execute() .json(GsonUtils.getGsonRestApi(), ApiApplicationIndex.class) .toModel()