diff --git a/features/report.lua b/features/report.lua index fccea46d..6cf978e0 100644 --- a/features/report.lua +++ b/features/report.lua @@ -6,6 +6,12 @@ local Command = require 'utils.command' local Popup = require 'features.gui.popup' local Color = require 'resources.color_presets' local Event = require 'utils.event' +local Server = require 'features.server' +local Discord = require 'resources.discord' + +local helpdesk_channel = Discord.channel_names.helpdesk +local moderation_log_channel = Discord.channel_names.moderation_log +local moderator_role_mention = Discord.role_mentions.moderator local format = string.format @@ -143,6 +149,29 @@ Module.show_reports = function(player) draw_report(report_body, #reports) end +local function send_report_to_discord(reporting_player, reported_player, message) + local text = {} + if reporting_player and reporting_player.valid then + text[#text + 1] = reporting_player.name + else + text[#text + 1] = '