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));