Recently, I was working on my SecurityManager module script,. however now the engine is unable to properly recognise my hook url which is responsible for sending a piece of data to my discord webhook.
When I use the raw webhook, including token and all, it works fine. However, when I use Secrets, and the method pertaining to it it refuses to work. “HttpError: InvalidUrl”
local key = HttpService:GetSecret("VANGUARD_AUTOMATIC_SECURITY")
local baseUrl = "https://webhook.lewisakura.moe/api/webhooks/"
local CONSTANTS = {
MAX_STRIKES = 3,
WEBHOOK_URL = key:AddPrefix(baseUrl),
NOTIFICATION_THRESHOLD = 2, -- Minimum strike severity to trigger Discord notification
}