2019-05-21 23:12:06 +02:00
|
|
|
package nl.voidcorp.discord.commands
|
|
|
|
|
|
|
|
import nl.voidcorp.discord.command.Command
|
|
|
|
import nl.voidcorp.discord.command.CommandMessage
|
|
|
|
import nl.voidcorp.discord.command.CommandResult
|
2019-05-22 13:25:54 +02:00
|
|
|
import nl.voidcorp.discord.command.CommandSource
|
2019-05-21 23:12:06 +02:00
|
|
|
import org.springframework.stereotype.Component
|
|
|
|
|
|
|
|
@Component
|
2019-05-22 13:25:54 +02:00
|
|
|
class PermissionLevelCommand : Command("permissions", location = CommandSource.GUILD) {
|
2019-05-21 23:12:06 +02:00
|
|
|
override fun handle(event: CommandMessage): CommandResult {
|
|
|
|
event.reply("Your highest permission level is `${getLevel(event.member!!).levelName}`")
|
|
|
|
return CommandResult.SUCCESS
|
|
|
|
}
|
|
|
|
}
|