diff options
author | destruc7i0n <destruc7i0n@users.noreply.github.com> | 2022-01-03 16:08:32 -0500 |
---|---|---|
committer | destruc7i0n <destruc7i0n@users.noreply.github.com> | 2022-01-03 16:08:32 -0500 |
commit | 3b0306b0f09d79426c117784092701e1a4d8133c (patch) | |
tree | 85d687f92776eaeb224bc30fac00eec304e858ef /src/DiscordWebhooks.ts | |
parent | added debug for webhook ratelimit (diff) | |
download | shulker-3b0306b0f09d79426c117784092701e1a4d8133c.tar.gz shulker-3b0306b0f09d79426c117784092701e1a4d8133c.zip |
added tests
Diffstat (limited to '')
-rw-r--r-- | src/DiscordWebhooks.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DiscordWebhooks.ts b/src/DiscordWebhooks.ts index 77f8575..d5440c7 100644 --- a/src/DiscordWebhooks.ts +++ b/src/DiscordWebhooks.ts @@ -41,7 +41,7 @@ class DiscordWebhooks { } private parseDiscordWebhook (url: string) { - const re = /discord[app]?.com\/api\/webhooks\/([^\/]+)\/([^\/]+)/ + const re = /discord(?:app)?.com\/api\/webhooks\/([^\/]+)\/([^\/]+)/ // the is of the webhook let id = null |