Class IncomingWebhookClientImpl
java.lang.Object
net.dv8tion.jda.internal.entities.AbstractWebhookClient<Message>
net.dv8tion.jda.internal.requests.IncomingWebhookClientImpl
- All Implemented Interfaces:
IncomingWebhookClient
,ISnowflake
,WebhookClient<Message>
public class IncomingWebhookClientImpl
extends AbstractWebhookClient<Message>
implements IncomingWebhookClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteMessageById
(String messageId) Delete a message from this webhook.editRequest
(String messageId) retrieveMessageById
(String messageId) Retrieves the message with the provided id.Methods inherited from class net.dv8tion.jda.internal.entities.AbstractWebhookClient
editMessageAttachmentsById, editMessageById, editMessageById, editMessageComponentsById, editMessageEmbedsById, getIdLong, getJDA, getToken, sendFiles, sendMessage, sendMessage, sendMessageComponents, sendMessageEmbeds, sendMessagePoll
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, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.WebhookClient
deleteMessageById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageById, editMessageById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageEmbedsById, editMessageEmbedsById, editMessageEmbedsById, editMessageEmbedsById, editMessageFormatById, editMessageFormatById, getJDA, getToken, sendFiles, sendFiles, sendMessage, sendMessage, sendMessageComponents, sendMessageComponents, sendMessageComponents, sendMessageEmbeds, sendMessageEmbeds, sendMessageFormat, sendMessagePoll
-
Constructor Details
-
IncomingWebhookClientImpl
-
-
Method Details
-
sendRequest
- Specified by:
sendRequest
in classAbstractWebhookClient<Message>
-
editRequest
- Specified by:
editRequest
in classAbstractWebhookClient<Message>
-
retrieveMessageById
Description copied from interface:WebhookClient
Retrieves the message with the provided id.
This only works for messages sent by this webhook. All other messages are unknown.Use
setThreadId(threadId)
to retrieve messages from threads.If this is an
InteractionHook
this method will be delayed until the interaction is acknowledged.Possible
ErrorResponses
include:UNKNOWN_WEBHOOK
The webhook is no longer available, either it was deleted or in case of interactions it expired.UNKNOWN_MESSAGE
If the message is inaccessible to this webhook or does not exist.
- Specified by:
retrieveMessageById
in interfaceWebhookClient<Message>
- Returns:
WebhookMessageRetrieveAction
-
deleteMessageById
Description copied from interface:WebhookClient
Delete a message from this webhook.Use
setThreadId(threadId)
to delete messages from threads.If this is an
InteractionHook
this method will be delayed until the interaction is acknowledged.Possible
ErrorResponses
include:UNKNOWN_WEBHOOK
The webhook is no longer available, either it was deleted or in case of interactions it expired.UNKNOWN_MESSAGE
The message for that id does not exist
- Specified by:
deleteMessageById
in interfaceWebhookClient<Message>
- Overrides:
deleteMessageById
in classAbstractWebhookClient<Message>
- Parameters:
messageId
- The id for the message to delete- Returns:
WebhookMessageDeleteAction
-