Class Webhook.WebhookReference

java.lang.Object
net.dv8tion.jda.api.entities.Webhook.WebhookReference
All Implemented Interfaces:
ISnowflake
Enclosing interface:
Webhook

public static class Webhook.WebhookReference extends Object implements ISnowflake
Partial Webhook which can be resolved to a Webhook.
See Also:
  • Constructor Details

    • WebhookReference

      public WebhookReference(JDA api, long webhookId, long channelId)
  • Method Details

    • getIdLong

      public long getIdLong()
      Description copied from interface: ISnowflake
      The Snowflake id of this entity. This is unique to every entity and will never change.
      Specified by:
      getIdLong in interface ISnowflake
      Returns:
      Long containing the Id.
    • getChannelId

      @Nonnull public String getChannelId()
      The ID for the channel this webhook belongs to
      Returns:
      The ID for the channel this webhook belongs to
    • getChannelIdLong

      public long getChannelIdLong()
      The ID for the channel this webhook belongs to
      Returns:
      The ID for the channel this webhook belongs to
    • resolve

      Resolves this reference to a Webhook instance.
      The resulting instance may not provide a Webhook.getChannel() and Webhook.getGuild() due to API limitation.

      The resulting webhook can also not be executed because the API does not provide a token.

      Returns:
      RestAction - Type: Webhook