Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ class Commands(val bot: Bot) {
)).complete()
}

register(CommandData("reactionrole", "description")
register(CommandData("reactionrole", "Adds toggleable reaction roles to a message")
.addOption(OptionType.STRING, "message", "Message link", true)
.addOption(OptionType.STRING, "reactions", "Reactions", true)) { event ->

.addOption(OptionType.STRING, "reactions", "Reactions", true))
.addOption(OptionType.STRING, "role", "role name", true)) { event ->
// case sensitive because of unpingable roles. Plan on adding role IDs as an option.
assertAdmin(event)

val reactionsMap = event.getOption("reactions")!!.asString.removeSurrounding("\"").split(", ")
Expand Down