MaxEtMoritz / PNavCopy

IITC Addon that copies Portal Names and Locations to Clipboard or sends them to Discord in the format needed by the PokeNav Discord Bot.
ISC License
5 stars 2 forks source link

Webhook URL Issue #16

Closed rhondalea closed 2 years ago

rhondalea commented 2 years ago

This is a limited issue, because most people aren't using Discord Canary (although it probably also applies to PTB, but I haven't checked).

All the Canary urls, including webhooks, start with https://canary.discord.com/api/webhooks/, which is not accepted by the bot setup. To make it work, I had to download Discord stable to get an url that starts like this: https://discordapp.com/api/webhooks/.

You can probably just replace canary.discord with discordapp, as you would do with a link, but I've had the experience that it doesn't always work out quite as intended.

MaxEtMoritz commented 2 years ago

Ohh, wasn't aware that something like Discord Canary exists. Will update the URL validation to also accept canary.discord.com URLs. Do you know which URL Discord PTB uses? Otherwise i'll figure that out myself when i have time for it.

rhondalea commented 2 years ago

I downloaded PTB, and it's https://ptb.discord.com/api/webhooks/.

Unfortunately, every platform has something different, and I don't use Linux or Apple. https://support.discord.com/hc/en-us/articles/360035675191-Discord-Testing-Clients