Skip to content

Commit

Permalink
bro wants docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed May 17, 2024
1 parent 52caca3 commit ceb30f8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <br>Default: {@code false}
*/
protected boolean nsfwOnly = false;

/**
* Gets the {@link Interaction#cooldown cooldown} for the Interaction.
*
Expand Down Expand Up @@ -148,7 +155,7 @@ public boolean isOwnerCommand()
/**
* Returns the installation scope for this interaction.
*
* @return
* @return the installation scope for this interaction
*/
public Set<InteractionContextType> getContexts() {
return new HashSet<>(Arrays.asList(contexts));
Expand Down

0 comments on commit ceb30f8

Please sign in to comment.