fix(SlashCommandsFix): 8.18.0 - don't use new props
This commit is contained in:
parent
c683db2a0b
commit
05a76ff7ac
2 changed files with 4 additions and 11 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
|
|
||||||
version = "7.16.2"
|
version = "8.18.0"
|
||||||
description = "Beta backport of SlashCommandsFix"
|
description = "Beta backport of SlashCommandsFix"
|
||||||
|
|
||||||
aliucord {
|
aliucord {
|
||||||
changelog.set("""
|
changelog.set("""
|
||||||
|
# 8.18.0
|
||||||
|
* Don't use custom props anymore (core has them)
|
||||||
|
|
||||||
# 7.16.2
|
# 7.16.2
|
||||||
* Use new props
|
* Use new props
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -273,19 +273,9 @@ final class Patches {
|
||||||
var applicationIndex = source.getFromCache(applicationIndexCache);
|
var applicationIndex = source.getFromCache(applicationIndexCache);
|
||||||
if (!applicationIndex.isPresent()) {
|
if (!applicationIndex.isPresent()) {
|
||||||
try {
|
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
|
// Request application index from API
|
||||||
applicationIndex = Optional.of(
|
applicationIndex = Optional.of(
|
||||||
Http.Request.newDiscordRNRequest(source.getEndpoint())
|
Http.Request.newDiscordRNRequest(source.getEndpoint())
|
||||||
.setHeader("User-Agent", userAgent)
|
|
||||||
.setHeader("X-Super-Properties", props64)
|
|
||||||
.execute()
|
.execute()
|
||||||
.json(GsonUtils.getGsonRestApi(), ApiApplicationIndex.class)
|
.json(GsonUtils.getGsonRestApi(), ApiApplicationIndex.class)
|
||||||
.toModel()
|
.toModel()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue