I have made a plugin to log events to Discord, i would like the name to be Cargo Plane for the cargo plane, Attack Heli for heli and so on here is the plugin:
if (entity is CargoPlane || entity is BaseHelicopter || entity is CargoShip || entity is CH47Helicopter)
{
Channel channel = null;
_client.DiscordServer.channels.FindAll(findChannel =>
{
if (findChannel.id == "not for you ") channel = findChannel;
return true;
});
Author author = new Author
{
name = entity.name,
icon_url = GetUrl(entity)
};
Embed embed = new Embed
{
author = author,
description = GetText(entity),
color = 3447003
};
channel.CreateMessage(_client, embed);
}
}