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
public interface LegacyAuditSpec<T> extends LegacySpec<T>
A spec which can optionally have a reason in the audit logs when built.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetReason()Returns the current audit log reason set on the spec.LegacyAuditSpec<T>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 Detail
-
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.
-
-