Skip to content

Commit

Permalink
Clarify owner-only text command invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Oct 29, 2024
1 parent cd7f046 commit 0f93e06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package io.github.freya022.botcommands.api.commands.text.annotations

import io.github.freya022.botcommands.api.commands.text.builder.TextCommandBuilder
import io.github.freya022.botcommands.api.core.BotOwners

/**
* Marks this text command as only usable by the bot owners.
* Marks this text command as only usable by the [bot owners][BotOwners].
*
* Owner-only commands are hidden in the built-in help content,
* but will still be responded to if a user tries to use it,
* though they will be rejected.
*
* **Note:** This applies to the command itself, not only this variation,
* in other words, this applies to all commands with the same path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ interface TextCommandBuilder : CommandBuilder {
var description: String?

/**
* Marks this text command as only usable by the bot owners.
* Marks this text command as only usable by the [bot owners][BotOwners].
*
* Owner-only commands are hidden in the built-in help content,
* but will still be responded to if a user tries to use it,
* though they will be rejected.
*
* @see RequireOwner
*/
Expand Down

0 comments on commit 0f93e06

Please sign in to comment.