Class ScheduledEventUser

    • Constructor Detail

      • ScheduledEventUser

        public ScheduledEventUser​(GatewayDiscordClient gateway,
                                  discord4j.discordjson.json.GuildScheduledEventUserData data,
                                  Snowflake guildId)
        Constructs a ScheduledEventUser with an associated GatewayDiscordClient and Discord data.
        Parameters:
        gateway - The GatewayDiscordClient associated with this object, must be non-null.
        data - The raw data as represented by Discord, must be non-null.
        guildId - The ID of the guild the event belongs to, must be non-null.
    • Method Detail

      • getEventId

        public Snowflake getEventId()
        Gets the ID of the event the user is subscribed to.
        Returns:
        The ID of the event the user is subscribed to.
      • getUser

        public User getUser()
        Gets the User subscribed to the event.
        Returns:
        The User subscribed to the event.
      • getMember

        public Optional<PartialMember> getMember()
        Gets the PartialMember, if the user is a member of the guild the event is belongs to.
        Returns:
        The PartialMember, if the user is a member of the guild the event is belongs to.