Package discord4j.core.spec.legacy
Class LegacyWebhookEditWithTokenSpec
java.lang.Object
discord4j.core.spec.legacy.LegacyWebhookEditWithTokenSpec
- All Implemented Interfaces:
LegacySpec<discord4j.discordjson.json.WebhookModifyWithTokenRequest>
public class LegacyWebhookEditWithTokenSpec
extends Object
implements LegacySpec<discord4j.discordjson.json.WebhookModifyWithTokenRequest>
-
Constructor Details
-
LegacyWebhookEditWithTokenSpec
public LegacyWebhookEditWithTokenSpec()
-
-
Method Details
-
setName
Sets the name of the modifiedWebhook
.- Parameters:
name
- The webhook name.- Returns:
- This spec.
-
setAvatar
Sets the image of the modifiedWebhook
.- Parameters:
avatar
- The webhook image.- Returns:
- This spec.
-
asRequest
public discord4j.discordjson.json.WebhookModifyWithTokenRequest asRequest()- Specified by:
asRequest
in interfaceLegacySpec<discord4j.discordjson.json.WebhookModifyWithTokenRequest>
-