discord-jadx/app/src/main/java/com/discord/stores/StoreApplicationCommands$re...

36 lines
1.8 KiB
Java

package com.discord.stores;
import d0.t.m;
import d0.t.n;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreApplicationCommands.kt */
public final class StoreApplicationCommands$requestApplications$1 extends o implements Function0<Unit> {
public final /* synthetic */ long $guildId;
public final /* synthetic */ StoreApplicationCommands this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreApplicationCommands$requestApplications$1(StoreApplicationCommands storeApplicationCommands, long j) {
super(0);
this.this$0 = storeApplicationCommands;
this.$guildId = j;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
String access$generateNonce = StoreApplicationCommands.access$generateNonce(this.this$0);
StoreApplicationCommands.access$setApplicationNonce$p(this.this$0, access$generateNonce);
StoreApplicationCommands.access$setApplications$p(this.this$0, n.emptyList());
StoreApplicationCommands.access$getApplicationCommandIndexes$p(this.this$0).clear();
this.this$0.markChanged(StoreApplicationCommands.Companion.getGuildApplicationsUpdate());
if (this.$guildId > 0) {
StoreGatewayConnection.requestApplicationCommands$default(StoreApplicationCommands.access$getStoreGatewayConnection$p(this.this$0), this.$guildId, access$generateNonce, true, null, null, 0, 24, null);
return;
}
StoreApplicationCommands storeApplicationCommands = this.this$0;
StoreApplicationCommands.access$handleGuildApplicationsUpdate(storeApplicationCommands, m.listOf(StoreApplicationCommands.access$getBuiltInCommandsProvider$p(storeApplicationCommands).getBuiltInApplication()));
}
}