tunisiano187/WME-send-to-slack

[Bug] Deprecations of Discord WebHook sendings

Closed this issue · 6 comments

Since the script is using Discord Slack Compatible WebHook and discord has estatement of:

} else if (key.toLowerCase() == "discord")
{
$.ajax({
data: 'payload=' + JSON.stringify({
"attachments": [{
"text": TextToSend}],
"username": ScriptName + " " + GM_info.script.version,
"mrkdwn": true,
"channel": serverDB[localStorage.getItem('WMESTSServer')][key]["chanel_" + chanel],
"icon_emoji": actionicon
}),
processData: false,
type: 'POST',
url: serverDB[localStorage.getItem('WMESTSServer')][key][chanel],
error: function(x, y, z)
{
log('Discord error : ' + x + ' ' + y + ' ' + z);
}

We do not support Slack's channel, icon_emoji, mrkdwn, or mrkdwn_in properties.

We need to find a way to replace this.

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.90. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

stale commented

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

Yes, needing time

stale commented

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

stale commented

This issue has been automatically closed because it has not had any comments for a while, feel free to reopen it if needed