Package discord4j.common.store.api
Enum StoreFlag
- java.lang.Object
-
- java.lang.Enum<StoreFlag>
-
- discord4j.common.store.api.StoreFlag
-
- All Implemented Interfaces:
Serializable,Comparable<StoreFlag>
public enum StoreFlag extends Enum<StoreFlag>
Flag for signaling which store actions will be enabled or disabled.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANNELFlag affecting operations related to channels.EMOJIFlag affecting operations related to guild emojis.GUILDFlag affecting operations related to guilds.MEMBERFlag affecting operations related to guild members.MESSAGEFlag affecting operations related to messages.PRESENCEFlag affecting operations related to presences.ROLEFlag affecting operations related to guild roles.SCHEDULED_EVENTFlag affecting operations related to guild scheduled events.STICKERFlag affecting operations related to guild stickers.USERFlag affecting operations related to users.VOICE_STATEFlag affecting operations related to voice states.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StoreFlagvalueOf(String name)Returns the enum constant of this type with the specified name.static StoreFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHANNEL
public static final StoreFlag CHANNEL
Flag affecting operations related to channels.Updates:
- onChannelCreate
- onChannelDelete
- onChannelUpdate
- countChannels
- countChannelsInGuild
- getChannels
- getChannelsInGuild
- getChannelById
-
EMOJI
public static final StoreFlag EMOJI
Flag affecting operations related to guild emojis.Updates:
- onGuildEmojisUpdate
- countEmojis
- countEmojisInGuild
- getEmojis
- getEmojisInGuild
- getEmojiById
-
GUILD
public static final StoreFlag GUILD
Flag affecting operations related to guilds.Updates:
- onGuildCreate
- onGuildDelete
- onGuildUpdate
- countGuilds
- getGuilds
- getGuildById
-
MEMBER
public static final StoreFlag MEMBER
Flag affecting operations related to guild members.Updates:
- onGuildMemberAdd
- onGuildMemberRemove
- onGuildMembersChunk
- onGuildMemberUpdate
- onGuildMembersCompletion
- countMembers
- countMembersInGuild
- countExactMembersInGuild
- getMembers
- getMembersInGuild
- getExactMembersInGuild
- getMemberById
-
MESSAGE
public static final StoreFlag MESSAGE
Flag affecting operations related to messages.Updates:
- onMessageCreate
- onMessageDelete
- onMessageDeleteBulk
- onMessageReactionAdd
- onMessageReactionRemove
- onMessageReactionRemoveAll
- onMessageReactionRemoveEmoji
- onMessageUpdate
- countMessages
- countMessagesInChannel
- getMessages
- getMessagesInChannel
- getMessageById
-
PRESENCE
public static final StoreFlag PRESENCE
Flag affecting operations related to presences.Updates:
- onPresenceUpdate
- countPresences
- countPresencesInGuild
- getPresences
- getPresencesInGuild
- getPresenceById
-
ROLE
public static final StoreFlag ROLE
Flag affecting operations related to guild roles.Updates:
- onGuildRoleCreate
- onGuildRoleDelete
- onGuildRoleUpdate
- countRoles
- countRolesInGuild
- getRoles
- getRolesInGuild
- getRoleById
-
USER
public static final StoreFlag USER
Flag affecting operations related to users.Updates:
- onUserUpdate
- countUsers
- getUsers
- getUserById
-
VOICE_STATE
public static final StoreFlag VOICE_STATE
Flag affecting operations related to voice states.Updates:
- onVoiceStateUpdateDispatch
- countVoiceStates
- countVoiceStatesInGuild
- countVoiceStatesInChannel
- getVoiceStates
- getVoiceStatesInChannel
- getVoiceStatesInGuild
- getVoiceStateById
-
STICKER
public static final StoreFlag STICKER
Flag affecting operations related to guild stickers.Updates:
- onGuildStickersUpdate
- countStickers
- countStickersInGuild
- getStickers
- getStickersInGuild
- getStickerById
-
SCHEDULED_EVENT
public static final StoreFlag SCHEDULED_EVENT
Flag affecting operations related to guild scheduled events.Updates:
- onGuildScheduledEventCreate
- onGuildScheduledEventUpdate
- onGuildScheduledEventDelete
- onGuildScheduledEventUserAdd
- onGuildScheduledEventUserRemove
- getScheduledEventsInGuild
- getScheduledEventById
- getScheduledEventUsersInEvent
-
-
Method Detail
-
values
public static StoreFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StoreFlag c : StoreFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoreFlag valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-