Discord webhook not working?

Hey,

So I have a handto system and want to log it to a webhook. I tried this but it doesn’t come through, the give and point lines are working.

game.ReplicatedStorage.GivePlayerItem.OnServerEvent:Connect(function(Player, PlayerName)
	if Player.Name ~= PlayerName then
		local ToolToGive = Player.Character:FindFirstChildWhichIsA("Tool")
		ToolToGive.Parent = game.Players[PlayerName].Backpack
		Player.leaderstats.Points.Value = Player.leaderstats.Points.Value + 1
		local Webhook = "deleted due to safety"
		local Https = game:GetService("HttpService")
		local data = {
			content = PlayerName .. "gave" .. Player .. ToolToGive,
		}
		Https:PostAsync(Webhook,Https:JSONEncode(data))
	end
end)

I hope someone could help me

You might have to use Player.Name instead of Player when concatenating the content, and ToolToGive.Name too

Didn’t work hmm, if I just send text it doesn’t work either. I don’t get an error.

You are making a variable of the folder Backpack and not of the tool inside the Backpack.