Interface AuditSpec<T>

All Superinterfaces:
Spec<T>
All Known Subinterfaces:
AutoModRuleEditSpecGenerator, ForumChannelCreateSpecGenerator, ForumChannelEditSpecGenerator, ScheduledEventCreateSpecGenerator, ScheduledEventEditSpecGenerator, StartThreadInForumChannelSpecGenerator, StartThreadSpecGenerator, StartThreadWithoutMessageSpecGenerator

public interface AuditSpec<T> extends Spec<T>
A spec which can optionally have a reason in the audit logs when built.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the current audit log reason set on the spec.

    Methods inherited from interface discord4j.core.spec.Spec

    asRequest
  • Method Details

    • reason

      @Nullable String reason()
      Returns the current audit log reason set on the spec.
      Returns:
      The current audit log reason.