Class UserUpdateGameEvent

  • All Implemented Interfaces:
    UpdateEvent<User,​Game>

    public class UserUpdateGameEvent
    extends GenericUserPresenceEvent<Game>
    Indicates that the Game of a User changes.
    As with any presence updates this either happened for a Member in a Guild or a Friend!

    Can be used to retrieve the User who changed their Game and their previous Game.

    Identifier: game

    • Constructor Detail

      • UserUpdateGameEvent

        public UserUpdateGameEvent​(JDA api,
                                   long responseNumber,
                                   User user,
                                   Guild guild,
                                   Game previousGame)
    • Method Detail

      • getOldGame

        public Game getOldGame()
        The previous Game
        Returns:
        The previous Game
      • getNewGame

        public Game getNewGame()
        The new Game
        Returns:
        The new Game