Interface VoiceDispatchInterceptor.VoiceUpdate

    • Method Detail

      • getGuild

        @Nonnull
        Guild getGuild()
        The Guild for this update
        Returns:
        The guild
      • toData

        @Nonnull
        DataObject toData()
        The raw JSON object that was parsed from this update
        Specified by:
        toData in interface SerializableData
        Returns:
        The raw JSON object
      • getGuildIdLong

        default long getGuildIdLong()
        Shortcut to access the guild id
        Returns:
        The guild id
      • getGuildId

        @Nonnull
        default java.lang.String getGuildId()
        Shortcut to access the guild id
        Returns:
        The guild id
      • getJDA

        @Nonnull
        default JDA getJDA()
        Shortcut to access the JDA instance
        Returns:
        The JDA instance
      • getShardInfo

        @Nullable
        default JDA.ShardInfo getShardInfo()
        Shortcut to access the shard info for this JDA instance
        Returns:
        The shard information, or null if this was not for a sharded client