Package net.dv8tion.jda.api.entities
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 java.lang.Object implements ISnowflake
- See Also:
resolve()
-
-
Constructor Summary
Constructors Constructor Description WebhookReference(JDA api, long webhookId, long channelId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getChannelId()
The ID for the channel this webhook belongs tolong
getChannelIdLong()
The ID for the channel this webhook belongs tolong
getIdLong()
The Snowflake id of this entity.RestAction<Webhook>
resolve()
Resolves this reference to aWebhook
instance.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
-
-
-
Constructor Detail
-
WebhookReference
public WebhookReference(JDA api, long webhookId, long channelId)
-
-
Method Detail
-
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 interfaceISnowflake
- Returns:
- Long containing the Id.
-
getChannelId
@Nonnull public java.lang.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
@Nonnull @CheckReturnValue public RestAction<Webhook> resolve()
Resolves this reference to aWebhook
instance.
The resulting instance may not provide aWebhook.getChannel()
andWebhook.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
-
-