public class EntityBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MISSING_CHANNEL |
static java.lang.String |
MISSING_USER |
Constructor and Description |
---|
EntityBuilder(JDA api) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
Application |
createApplication(org.json.JSONObject object) |
ApplicationInfo |
createApplicationInfo(org.json.JSONObject object) |
AuditLogChange |
createAuditLogChange(org.json.JSONObject change) |
AuditLogEntry |
createAuditLogEntry(net.dv8tion.jda.core.entities.impl.GuildImpl guild,
org.json.JSONObject entryJson,
org.json.JSONObject userJson) |
AuthorizedApplication |
createAuthorizedApplication(org.json.JSONObject object) |
User |
createFakeUser(org.json.JSONObject user,
boolean modifyCache) |
Group |
createGroup(org.json.JSONObject groupJson) |
void |
createGuildFirstPass(org.json.JSONObject guild,
java.util.function.Consumer<Guild> secondPassCallback) |
void |
createGuildSecondPass(long guildId,
java.util.List<org.json.JSONArray> memberChunks) |
void |
createGuildVoiceStatePass(net.dv8tion.jda.core.entities.impl.GuildImpl guildObj,
org.json.JSONArray voiceStates) |
Invite |
createInvite(org.json.JSONObject object) |
Member |
createMember(net.dv8tion.jda.core.entities.impl.GuildImpl guild,
org.json.JSONObject memberJson) |
Message |
createMessage(org.json.JSONObject jsonObject) |
Message |
createMessage(org.json.JSONObject jsonObject,
boolean exceptionOnMissingUser) |
Message |
createMessage(org.json.JSONObject jsonObject,
MessageChannel chan,
boolean exceptionOnMissingUser) |
MessageEmbed |
createMessageEmbed(org.json.JSONObject messageEmbed) |
PermissionOverride |
createPermissionOverride(org.json.JSONObject override,
Channel chan) |
void |
createPresence(java.lang.Object memberOrFriend,
org.json.JSONObject presenceJson) |
PrivateChannel |
createPrivateChannel(org.json.JSONObject privatechat) |
Relationship |
createRelationship(org.json.JSONObject relationshipJson) |
Role |
createRole(org.json.JSONObject roleJson,
long guildId) |
SelfUser |
createSelfUser(org.json.JSONObject self) |
TextChannel |
createTextChannel(org.json.JSONObject json,
long guildId) |
TextChannel |
createTextChannel(org.json.JSONObject json,
long guildId,
boolean guildIsLoaded) |
User |
createUser(org.json.JSONObject user) |
VoiceChannel |
createVoiceChannel(org.json.JSONObject json,
long guildId) |
VoiceChannel |
createVoiceChannel(org.json.JSONObject json,
long guildId,
boolean guildIsLoaded) |
Webhook |
createWebhook(org.json.JSONObject object) |
void |
handleGuildSync(net.dv8tion.jda.core.entities.impl.GuildImpl guild,
org.json.JSONArray members,
org.json.JSONArray presences) |
public static final java.lang.String MISSING_CHANNEL
public static final java.lang.String MISSING_USER
public EntityBuilder(JDA api)
public SelfUser createSelfUser(org.json.JSONObject self)
public void createGuildFirstPass(org.json.JSONObject guild, java.util.function.Consumer<Guild> secondPassCallback)
public void createGuildSecondPass(long guildId, java.util.List<org.json.JSONArray> memberChunks)
public void handleGuildSync(net.dv8tion.jda.core.entities.impl.GuildImpl guild, org.json.JSONArray members, org.json.JSONArray presences)
public void createGuildVoiceStatePass(net.dv8tion.jda.core.entities.impl.GuildImpl guildObj, org.json.JSONArray voiceStates)
public User createFakeUser(org.json.JSONObject user, boolean modifyCache)
public User createUser(org.json.JSONObject user)
public Member createMember(net.dv8tion.jda.core.entities.impl.GuildImpl guild, org.json.JSONObject memberJson)
public void createPresence(java.lang.Object memberOrFriend, org.json.JSONObject presenceJson)
public TextChannel createTextChannel(org.json.JSONObject json, long guildId)
public TextChannel createTextChannel(org.json.JSONObject json, long guildId, boolean guildIsLoaded)
public VoiceChannel createVoiceChannel(org.json.JSONObject json, long guildId)
public VoiceChannel createVoiceChannel(org.json.JSONObject json, long guildId, boolean guildIsLoaded)
public PrivateChannel createPrivateChannel(org.json.JSONObject privatechat)
public Role createRole(org.json.JSONObject roleJson, long guildId)
public Message createMessage(org.json.JSONObject jsonObject)
public Message createMessage(org.json.JSONObject jsonObject, boolean exceptionOnMissingUser)
public Message createMessage(org.json.JSONObject jsonObject, MessageChannel chan, boolean exceptionOnMissingUser)
public MessageEmbed createMessageEmbed(org.json.JSONObject messageEmbed)
public PermissionOverride createPermissionOverride(org.json.JSONObject override, Channel chan)
public Webhook createWebhook(org.json.JSONObject object)
public Relationship createRelationship(org.json.JSONObject relationshipJson)
public Group createGroup(org.json.JSONObject groupJson)
public Invite createInvite(org.json.JSONObject object)
public void clearCache()
public ApplicationInfo createApplicationInfo(org.json.JSONObject object)
public Application createApplication(org.json.JSONObject object)
public AuthorizedApplication createAuthorizedApplication(org.json.JSONObject object)
public AuditLogEntry createAuditLogEntry(net.dv8tion.jda.core.entities.impl.GuildImpl guild, org.json.JSONObject entryJson, org.json.JSONObject userJson)
public AuditLogChange createAuditLogChange(org.json.JSONObject change)