discord-jadx/app/src/main/java/com/discord/stores/BuiltInCommands.java

53 lines
2.8 KiB
Java
Raw Normal View History

2021-07-24 02:37:17 +00:00
package com.discord.stores;
import com.discord.api.commands.ApplicationCommandType;
import com.discord.models.commands.Application;
import com.discord.models.commands.ApplicationCommand;
import com.discord.models.commands.ApplicationCommandOption;
import com.discord.models.commands.BuiltInCommand;
import d0.t.m;
import d0.t.n;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: StoreApplicationCommands.kt */
public final class BuiltInCommands implements BuiltInCommandsProvider {
public static final long BUILT_IN_APP_ID = -1;
public static final Companion Companion = new Companion(null);
private final Application builtInApplication;
private final List<ApplicationCommand> builtInCommands;
/* compiled from: StoreApplicationCommands.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
public BuiltInCommands() {
List<ApplicationCommand> listOf = n.listOf((Object[]) new ApplicationCommand[]{createAppendToEndSlashCommand(-1, "shrug", 2131887445, 2131887446, "¯\\\\_(ツ)\\_/¯"), createAppendToEndSlashCommand(-2, "tableflip", 2131887449, 2131887450, "(╯°□°)╯︵ ┻━┻"), createAppendToEndSlashCommand(-3, "unflip", 2131887451, 2131887452, "┬─┬ ( ゜-゜ノ)"), createWrappedSlashCommand(-5, "me", 2131887436, 2131887437, "_"), createWrappedSlashCommand(-6, "spoiler", 2131887447, 2131887448, "||")});
this.builtInCommands = listOf;
this.builtInApplication = new Application(-1, "Built-In", null, 2131231958, listOf.size(), null, true, 36, null);
}
private final ApplicationCommand createAppendToEndSlashCommand(long j, String str, Integer num, Integer num2, String str2) {
return new BuiltInCommand(String.valueOf(j), -1, str, num, m.listOf(new ApplicationCommandOption(ApplicationCommandType.STRING, "message", null, num2, false, false, null, null, 196, null)), new BuiltInCommands$createAppendToEndSlashCommand$1(str2));
}
private final ApplicationCommand createWrappedSlashCommand(long j, String str, Integer num, Integer num2, String str2) {
return new BuiltInCommand(String.valueOf(j), -1, str, num, m.listOf(new ApplicationCommandOption(ApplicationCommandType.STRING, "message", null, num2, true, false, null, null, 196, null)), new BuiltInCommands$createWrappedSlashCommand$1(str2));
}
@Override // com.discord.stores.BuiltInCommandsProvider
public Application getBuiltInApplication() {
return this.builtInApplication;
}
@Override // com.discord.stores.BuiltInCommandsProvider
public List<ApplicationCommand> getBuiltInCommands() {
return this.builtInCommands;
}
}