We are trying to register a new webhook with the below code
public class Webhook : IWebhookRegistrar , ITranslatablePlugin { public string Name => "Webhook Extension"; public string Description => "Adds custom webhook"; private ITranslatablePluginController _translationController; private IWebhookController _webhookController; public Translation[] DefaultTranslations { get { var translation = new Translation("en-us"); translation.Set("my_translation_name", "sample webhook"); translation.Set("my_translation_description", "custom webhook"); return new Translation[] { translation }; } } public void SetController(ITranslatablePluginController controller) { _translationController = controller; } public void Initialize() { } public void Register(IWebhookController controller) { _webhookController = controller; var webhookEvent = new WebhookEvent(_translationController.GetLanguageResourceValue("my_translation_name"), _translationController.GetLanguageResourceValue("my_translation_description"), _translationController, Guid.Parse("8bd09c7a-a417-4bd4-a65e-d2bedea007ab"), Type.GetType("Webhook.Extension.WebhookData")); _webhookController.Register(webhookEvent); } }
we are able to register the webhook , and the webhook is sending the data to the specific URL ,
But the name and description are missing on the UI , we are able to see only the check box.
corrected spell
[edited by: Satish Kumar Polampalli at 12:26 PM (GMT 0) on Mon, Jun 21 2021]