Class UserTypingEvent

    • Constructor Detail

      • UserTypingEvent

        public UserTypingEvent​(@Nonnull
                               JDA api,
                               long responseNumber,
                               @Nonnull
                               User user,
                               @Nonnull
                               MessageChannel channel,
                               @Nonnull
                               java.time.OffsetDateTime timestamp,
                               @Nullable
                               Member member)
    • Method Detail

      • getTimestamp

        @Nonnull
        public java.time.OffsetDateTime getTimestamp()
        The time when the user started typing
        Returns:
        The time when the typing started
      • getChannel

        @Nonnull
        public MessageChannel getChannel()
        The channel where the typing was started
        Returns:
        The channel
      • isFromType

        public boolean isFromType​(@Nonnull
                                  ChannelType type)
        Whether the user started typing in a channel of the specified type.
        Parameters:
        type - ChannelType
        Returns:
        True, if the user started typing in a channel of the specified type
      • getTextChannel

        @Nullable
        public TextChannel getTextChannel()
        TextChannel in which this users started typing, or null if this was not in a TextChannel.
        Returns:
        Possibly-null TextChannel
      • getGuild

        @Nullable
        public Guild getGuild()
        Guild in which this users started typing, or null if this was not in a Guild.
        Returns:
        Possibly-null Guild
      • getMember

        @Nullable
        public Member getMember()
        Member instance for the User, or null if this was not in a Guild.
        Returns:
        Possibly-null Member