Class LegacyWebhookEditSpec

  • All Implemented Interfaces:
    LegacyAuditSpec<discord4j.discordjson.json.WebhookModifyRequest>, LegacySpec<discord4j.discordjson.json.WebhookModifyRequest>

    public class LegacyWebhookEditSpec
    extends Object
    implements LegacyAuditSpec<discord4j.discordjson.json.WebhookModifyRequest>
    LegacySpec to modify a Webhook entity.
    See Also:
    Modify Webhook
    • Constructor Detail

      • LegacyWebhookEditSpec

        public LegacyWebhookEditSpec()
    • Method Detail

      • setReason

        public LegacyWebhookEditSpec setReason​(String reason)
        Description copied from interface: LegacyAuditSpec
        Sets the reason to show in the audit logs when the spec is built.
        Specified by:
        setReason in interface LegacyAuditSpec<discord4j.discordjson.json.WebhookModifyRequest>
        Parameters:
        reason - The audit log reason.
        Returns:
        This spec.
      • getReason

        @Nullable
        public String getReason()
        Description copied from interface: LegacyAuditSpec
        Returns the current audit log reason set on the spec.
        Specified by:
        getReason in interface LegacyAuditSpec<discord4j.discordjson.json.WebhookModifyRequest>
        Returns:
        The current audit log reason.
      • asRequest

        public discord4j.discordjson.json.WebhookModifyRequest asRequest()
        Specified by:
        asRequest in interface LegacySpec<discord4j.discordjson.json.WebhookModifyRequest>