local JoinWebhook = "https://discord.com/api/webhooks"..HttpService:GetSecret("JKWEB")
local Chatwebhook = "https://discord.com/api/webhooks"..HttpService:GetSecret("CHWEB")
issue is that they prompt an error
“Can’t find secret with given key”
That’s why I’m so confused aha, because I was suggested to use it and when I read others solutions for this type of problem it doesn’t work, so idk just weird…
Secrets has its own functions which append it as a prefix of suffix to a string. Rather than concatenating with … I think you need to use these functions to add your URL to the secret. The secret has to be formatted so it makes sense in the total URL. The result is a new Secret which can be passed to the HttpService but is otherwise opaque.
local JoinWebhook = HttpService:GetSecret("JLWEB"):AddPrefix("https://discord.com/api/webhooks")
local Chatwebhook = HttpService:GetSecret("CHWEB"):AddPrefix("https://discord.com/api/webhooks")
FWIW, I had a hard time getting this to work. It’s tricky to debug since it works differently in Studio and it’s hard to see what the completed URL looks like.