Class RoleUpdateColorEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.role.GenericRoleEvent
net.dv8tion.jda.api.events.role.update.GenericRoleUpdateEvent<Integer>
net.dv8tion.jda.api.events.role.update.RoleUpdateColorEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<Role,Integer>
@Deprecated
@ReplaceWith("RoleUpdateColorsEvent")
public class RoleUpdateColorEvent
extends GenericRoleUpdateEvent<Integer>
Deprecated.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoleUpdateColorEvent(JDA api, long responseNumber, Role role, int oldColor) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The new colorintDeprecated.The raw rgb value of the new colorDeprecated.The new valueDeprecated.The old colorintDeprecated.The raw rgb value of the old colorDeprecated.The old valueMethods inherited from class GenericRoleUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class GenericRoleEvent
getGuild, getRoleMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
-
-
Constructor Details
-
RoleUpdateColorEvent
-
-
Method Details
-
getOldColor
-
getOldColorRaw
public int getOldColorRaw()Deprecated.The raw rgb value of the old color- Returns:
- The raw rgb value of the old color
-
getNewColor
-
getNewColorRaw
public int getNewColorRaw()Deprecated.The raw rgb value of the new color- Returns:
- The raw rgb value of the new color
-
getOldValue
Deprecated.Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<Role,Integer> - Overrides:
getOldValuein classGenericRoleUpdateEvent<Integer>- Returns:
- The old value
-
getNewValue
Deprecated.Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<Role,Integer> - Overrides:
getNewValuein classGenericRoleUpdateEvent<Integer>- Returns:
- The new value
-
RoleUpdateColorsEvent