-
Notifications
You must be signed in to change notification settings - Fork 6
/
BansFeature.kt
24 lines (21 loc) · 940 Bytes
/
BansFeature.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.github.dod.doddy.bans
import com.github.dod.doddy.core.Command
import com.github.dod.doddy.core.Feature
import net.dv8tion.jda.core.EmbedBuilder
import net.dv8tion.jda.core.entities.Member
import net.dv8tion.jda.core.events.message.MessageReceivedEvent
class BansFeature : Feature {
@Command(names = ["ban"],
shortDescription = "Bans the specified member.",
longDescription = "Bans the specified member and provides an option for other node mods " +
"to also ban the user in their nodes.",
docUrl = "https://github.com/Devs-On-Discord/DoDdy/blob/develop/bans/README.md#bans")
fun ban(event: MessageReceivedEvent, member: Member) {
val test = EmbedBuilder()
.setColor(0xFFFFFF)
.setTitle("Success")
.setDescription("You successfully banned ${member.user.name}")
.build()
event.channel.sendMessage(test).queue()
}
}