From ceb30f8b88ea439dd91191c8a90149be2c8fe1c2 Mon Sep 17 00:00:00 2001 From: Chew Date: Fri, 17 May 2024 16:34:08 -0500 Subject: [PATCH] bro wants docs --- .../com/jagrosh/jdautilities/command/Interaction.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/command/src/main/java/com/jagrosh/jdautilities/command/Interaction.java b/command/src/main/java/com/jagrosh/jdautilities/command/Interaction.java index 58af7743..8c0906f4 100644 --- a/command/src/main/java/com/jagrosh/jdautilities/command/Interaction.java +++ b/command/src/main/java/com/jagrosh/jdautilities/command/Interaction.java @@ -95,6 +95,13 @@ public abstract class Interaction */ protected String userMissingPermMessage = "%s You must have the %s permission in this %s to use that!"; + /** + * {@code true} if the command may only be used in an NSFW {@link TextChannel} or DMs. + * {@code false} if it may be used anywhere + *
Default: {@code false} + */ + protected boolean nsfwOnly = false; + /** * Gets the {@link Interaction#cooldown cooldown} for the Interaction. * @@ -148,7 +155,7 @@ public boolean isOwnerCommand() /** * Returns the installation scope for this interaction. * - * @return + * @return the installation scope for this interaction */ public Set getContexts() { return new HashSet<>(Arrays.asList(contexts));