Interface LegacyAuditSpec<T>

All Superinterfaces:
LegacySpec<T>
All Known Implementing Classes:
LegacyBanQuerySpec, LegacyCategoryCreateSpec, LegacyCategoryEditSpec, LegacyGuildEditSpec, LegacyGuildEmojiCreateSpec, LegacyGuildEmojiEditSpec, LegacyGuildMemberEditSpec, LegacyGuildPruneSpec, LegacyInviteCreateSpec, LegacyNewsChannelCreateSpec, LegacyNewsChannelEditSpec, LegacyRoleCreateSpec, LegacyRoleEditSpec, LegacyStoreChannelEditSpec, LegacyTextChannelCreateSpec, LegacyTextChannelEditSpec, LegacyVoiceChannelCreateSpec, LegacyVoiceChannelEditSpec, LegacyWebhookCreateSpec, LegacyWebhookEditSpec

public interface LegacyAuditSpec<T> extends LegacySpec<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.
    setReason(String reason)
    Sets the reason to show in the audit logs when the spec is built.

    Methods inherited from interface discord4j.core.spec.legacy.LegacySpec

    asRequest
  • Method Details

    • setReason

      LegacyAuditSpec<T> setReason(@Nullable String reason)
      Sets the reason to show in the audit logs when the spec is built.
      Parameters:
      reason - The audit log reason.
      Returns:
      This spec.
    • getReason

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