53 lines
3.4 KiB
Java
53 lines
3.4 KiB
Java
package com.discord.stores;
|
||
|
||
import com.discord.R;
|
||
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", Integer.valueOf((int) R.string.command_shrug_description), Integer.valueOf((int) R.string.command_shrug_message_description), "¯\\\\_(ツ)\\_/¯"), createAppendToEndSlashCommand(-2, "tableflip", Integer.valueOf((int) R.string.command_tableflip_description), Integer.valueOf((int) R.string.command_tableflip_message_description), "(╯°□°)╯︵ ┻━┻"), createAppendToEndSlashCommand(-3, "unflip", Integer.valueOf((int) R.string.command_tableunflip_description), Integer.valueOf((int) R.string.command_tableunflip_message_description), "┬─┬ ノ( ゜-゜ノ)"), createWrappedSlashCommand(-5, "me", Integer.valueOf((int) R.string.command_me_description), Integer.valueOf((int) R.string.command_me_message_description), "_"), createWrappedSlashCommand(-6, "spoiler", Integer.valueOf((int) R.string.command_spoiler_description), Integer.valueOf((int) R.string.command_spoiler_message_description), "||")});
|
||
this.builtInCommands = listOf;
|
||
this.builtInApplication = new Application(-1, "Built-In", null, Integer.valueOf((int) R.drawable.ic_slash_command_24dp), 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;
|
||
}
|
||
}
|