2021-06-27 20:44:35 +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() {
|
2021-06-27 20:53:42 +00:00
|
|
|
|
List<ApplicationCommand> listOf = n.listOf((Object[]) new ApplicationCommand[]{createAppendToEndSlashCommand(-1, "shrug", 2131887441, 2131887442, "¯\\\\_(ツ)\\_/¯"), createAppendToEndSlashCommand(-2, "tableflip", 2131887445, 2131887446, "(╯°□°)╯︵ ┻━┻"), createAppendToEndSlashCommand(-3, "unflip", 2131887447, 2131887448, "┬─┬ ノ( ゜-゜ノ)"), createWrappedSlashCommand(-5, "me", 2131887432, 2131887433, "_"), createWrappedSlashCommand(-6, "spoiler", 2131887443, 2131887444, "||")});
|
2021-06-27 20:44:35 +00:00
|
|
|
|
this.builtInCommands = listOf;
|
2021-07-03 23:36:06 +00:00
|
|
|
|
this.builtInApplication = new Application(-1, "Built-In", null, 2131231937, listOf.size(), null, true, 36, null);
|
2021-06-27 20:44:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|