Files
Discord.Net/test/Discord.Net.Tests
Chris Johnston f2113c7c2b feature: Add webhook url overload for DiscordWebhookClient (#1260)
* Add webhook url overload for DiscordWebhookClient

Adds an overloaded constructor for `DiscordWebhookClient` which accepts the webhook URL. This URL is parsed using a regex for the id and token. If the token is invalid an `ArgumentException` is thrown.

* add null or whitespace check

* add some tests for the new DiscordWebhookClient constructor

* make the Regex static, specify flags

* update regex to look for "discordapp"

* specify reason why exception is thrown despite regex match

* move parsing logic into new function for testing
2019-05-04 17:14:32 -04:00
..
2017-01-24 13:46:32 -04:00
2017-01-24 14:02:26 -04:00
2019-03-17 13:06:15 -04:00
2019-03-17 13:06:15 -04:00
2019-03-17 13:06:15 -04:00
2019-03-17 13:06:15 -04:00
2017-01-26 00:06:47 -04:00