Implemented Report Abuse button - players can now submit reports to staff

This commit is contained in:
Ceikry 2022-09-08 01:53:45 +00:00 committed by Ryan
parent c3b91b2240
commit 54887ace0c

View file

@ -45,6 +45,7 @@ object Discord {
} }
fun postPlayerAlert(player: String, type: String) { fun postPlayerAlert(player: String, type: String) {
if (ServerConstants.DISCORD_MOD_WEBHOOK.isEmpty()) return
GlobalScope.launch { GlobalScope.launch {
val alert = encodeUserAlert(type, player) val alert = encodeUserAlert(type, player)
try { try {