Package discord4j.core.spec.legacy
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
A spec which can optionally have a reason in the audit logs when built.
-
Method Summary
Methods inherited from interface discord4j.core.spec.legacy.LegacySpec
asRequest
-
Method Details
-
setReason
Sets the reason to show in the audit logs when the spec is built.- Parameters:
reason
- The audit log reason.- Returns:
- This spec.
-
getReason
Returns the current audit log reason set on the spec.- Returns:
- The current audit log reason.
-