Hello @Dana

Love the plugin, please add the foolwing modifitcations to the plugin in the SendDiscordMessage method:

  • mentions += $"@{roleId} "; // Seems the way you have it set up does not work, I changed it to that
  • Content = $"{mentions}{message}\nServer Name:" + ConVar.Server.hostname
See below:

private void SendDiscordMessage(BasePlayer targetPlayer, BasePlayer owner, int warningCount, uint netId, string createdDate, string grid, WebHookThumbnail thumbnail)
{
var mentions = "";
if (_pluginConfig.Config.DiscordRolesToMention != null)
foreach (var roleId in _pluginConfig.Config.DiscordRolesToMention)
{
mentions += $"@{roleId} ";
}

var message = owner != null
? Lang(PluginMessages.DiscordStashMessage)
: Lang(PluginMessages.DiscordGeneratedStashMessage);
var contentBody = new WebHookContentBody
{
Content = $"{mentions}{message}\nServer Name:" + ConVar.Server.hostname
};

Thanks!
-TheDoc @Uprising Servers