This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.neox.web.pages.wrapped.hiscores; | |
| import com.google.gson.annotations.SerializedName; | |
| import com.mongodb.client.FindIterable; | |
| import com.mongodb.client.MongoCollection; | |
| import com.mongodb.client.model.Filters; | |
| import com.mongodb.client.model.Projections; | |
| import com.mongodb.client.model.Sorts; | |
| import com.neox.web.Neox; | |
| import com.neox.web.model.Response; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.neox.web.model.game.requests; | |
| import com.mongodb.MongoException; | |
| import com.mongodb.bulk.BulkWriteResult; | |
| import com.mongodb.client.MongoCollection; | |
| import com.mongodb.client.model.*; | |
| import com.neox.web.Neox; | |
| import com.neox.web.model.game.GameRequest; | |
| import com.neox.web.pojo.HiscoresStatDoc; | |
| import io.archon.misc.utils.ThreadUtils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.neox.web.model.game.requests; | |
| import com.mongodb.MongoException; | |
| import com.mongodb.bulk.BulkWriteResult; | |
| import com.mongodb.client.MongoCollection; | |
| import com.mongodb.client.model.*; | |
| import com.neox.web.model.game.GameRequest; | |
| import com.neox.web.pojo.HiscoresStatDoc; | |
| import io.archon.misc.utils.ThreadUtils; | |
| import io.archon.webserver.network.HttpAsyncRequest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.archon.discord.api.endpoints.guilds.members; | |
| import io.archon.discord.DiscordEndpoint; | |
| import io.archon.discord.api.GuildMember; | |
| import lombok.Getter; | |
| import lombok.RequiredArgsConstructor; | |
| import lombok.experimental.Accessors; | |
| import java.lang.reflect.Type; | |
| import java.util.Map; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.archon.discord.api.endpoints.guilds.members; | |
| import io.archon.discord.DiscordBot; | |
| import io.archon.discord.DiscordEndpoint; | |
| import io.archon.discord.DiscordRequest; | |
| import io.archon.discord.api.GuildMember; | |
| import lombok.Getter; | |
| import lombok.RequiredArgsConstructor; | |
| import lombok.Setter; | |
| import lombok.experimental.Accessors; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.archon.discord.api.interactions; | |
| import com.google.gson.annotations.SerializedName; | |
| public record ApplicationCommand(String id, String name, int type, Object resolved, Object options, | |
| @SerializedName("guild_id") String guildId, | |
| @SerializedName("target_id") String targetId) { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.archon.discord.api.interactions; | |
| import com.google.common.collect.ImmutableMap; | |
| import java.util.Map; | |
| public record Ping() { // ping has no data | |
| public Map<String, Object> pong() { | |
| return ImmutableMap.of("type", 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.neox.web.pages; | |
| import io.archon.discord.DiscordInteraction; | |
| import io.archon.discord.api.Interaction; | |
| import io.archon.discord.api.interactions.Ping; | |
| import io.archon.web.model.PageHandler; | |
| import io.archon.web.network.HttpAsyncRequest; | |
| import io.archon.web.network.messages.JsonMessage; | |
| import io.archon.web.network.messages.StatusMessage; | |
| import io.archon.web.other.PageMapper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.archon.discord; | |
| import io.archon.discord.api.Interaction; | |
| import io.archon.discord.api.interactions.*; | |
| import io.archon.web.other.GsonInstance; | |
| public class DiscordInteraction { | |
| private static <T> T dataToType(Object dataObj, Class<T> type) { | |
| String json = dataObj == null ? "" : GsonInstance.normal().toJson(dataObj); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.archon.discord; | |
| import io.archon.discord.api.Interaction; | |
| import io.archon.discord.api.interactions.*; | |
| import io.archon.web.other.GsonInstance; | |
| public class DiscordInteraction { | |
| private static <T> T ofType(Class<T> type, Object dataObj) { | |
| String json = dataObj == null ? "" : GsonInstance.normal().toJson(dataObj); |