Skip to content

Commit

Permalink
")" was missing (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPackage committed Feb 1, 2023
1 parent 30ba384 commit a7f2518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -218,7 +218,7 @@ public class Bot extends ListenerAdapter
jda.updateCommands().addCommands(
Commands.slash("ping", "Calculate ping of the bot"),
Commands.slash("ban", "Ban a user from the server")
.setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.BAN_MEMBERS) // only usable with ban permissions
.setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.BAN_MEMBERS)) // only usable with ban permissions
.setGuildOnly(true) // Ban command only works inside a guild
.addOption(OptionType.USER, "user", "The user to ban", true) // required option of type user (target to ban)
.addOption(OptionType.STRING, "reason", "The ban reason") // optional reason
Expand Down

0 comments on commit a7f2518

Please sign in to comment.