From 54887ace0caf558a4faebc153c1d0b3efe4e43c2 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Thu, 8 Sep 2022 01:53:45 +0000 Subject: [PATCH] Implemented Report Abuse button - players can now submit reports to staff --- Server/src/main/kotlin/discord/Discord.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/src/main/kotlin/discord/Discord.kt b/Server/src/main/kotlin/discord/Discord.kt index 33f980433..5f5b82136 100644 --- a/Server/src/main/kotlin/discord/Discord.kt +++ b/Server/src/main/kotlin/discord/Discord.kt @@ -45,6 +45,7 @@ object Discord { } fun postPlayerAlert(player: String, type: String) { + if (ServerConstants.DISCORD_MOD_WEBHOOK.isEmpty()) return GlobalScope.launch { val alert = encodeUserAlert(type, player) try {