Search in sources :

Example 21 with GuildObject

use of com.github.vaerys.masterobjects.GuildObject in project DiscordSailv2 by Vaerys-Dawn.

the class GuildConfig method updateVariables.

public void updateVariables(IGuild guild) {
    // update Guild Name
    setGuildName(guild.getName());
    guildID = guild.getLongID();
    GuildObject object = Globals.getGuildContent(guildID);
    object.channelData.updateVariables(guild);
    validateRoles();
}
Also used : GuildObject(com.github.vaerys.masterobjects.GuildObject)

Aggregations

GuildObject (com.github.vaerys.masterobjects.GuildObject)21 CommandObject (com.github.vaerys.commands.CommandObject)5 ZonedDateTime (java.time.ZonedDateTime)5 ArrayList (java.util.ArrayList)4 UserRoleUpdateEvent (sx.blah.discord.handle.impl.events.guild.member.UserRoleUpdateEvent)4 ChannelSetting (com.github.vaerys.enums.ChannelSetting)3 Client (com.github.vaerys.main.Client)3 Globals (com.github.vaerys.main.Globals)3 Utility (com.github.vaerys.main.Utility)3 Instant (java.time.Instant)3 ZoneOffset (java.time.ZoneOffset)3 Comparator (java.util.Comparator)3 List (java.util.List)3 Collectors (java.util.stream.Collectors)3 Logger (org.slf4j.Logger)3 LoggerFactory (org.slf4j.LoggerFactory)3 DiscordUtils (sx.blah.discord.api.internal.DiscordUtils)3 EmbedObject (sx.blah.discord.api.internal.json.objects.EmbedObject)3 ActionType (sx.blah.discord.handle.audit.ActionType)3 AuditLogEntry (sx.blah.discord.handle.audit.entry.AuditLogEntry)3