1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:15pm
#1
Hello.
So I tried making a webhook API so that I can send a script to a module and it sends it rather than having long tables in my scripts. However, when I send the table to my module script it returns the values with nil values, and still does it after to string and I can’t figure out why.
1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:16pm
#2
Adding on to this the only returned error is this
DataAspect
(DataAspect)
August 26, 2021, 7:22pm
#3
local webhook = require(game.ServerScriptService.WebhookModule)
webhook.new({url='https://discord.com/api/webhooks/andtherest', content = 'lol'})
1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:33pm
#4
Won’t make a difference, you can use {} instead of () after a function.
DataAspect
(DataAspect)
August 26, 2021, 7:35pm
#5
prove it kiddo. why are you using : im pretty sure its not a method
From what a friend of mine has stated
You are using a colon, instead of a dot for your function
1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:37pm
#7
Don’t think it’s an issue as it’s a function bit like :FindFirstChild is a function but i’ll give it a look over and try it with a dot.
1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:39pm
#8
Just as I thought, I used a dot and the same error occured, the colon and dot can be used interchangeably.
1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:39pm
#9
Just as I said above, you can use a colon or a dot.
DataAspect
(DataAspect)
August 26, 2021, 7:40pm
#10
what if x is already the table. your adding a table into a table and maybe thats issue idk
1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:41pm
#11
Hm, don’t think it should be an issue but I’ll change the x in the function to be argument and remove the local line and have a look.
1Iuvsjosh
(1Iuvsjosh)
August 26, 2021, 7:43pm
#12
Yep, that was the issue, I don’t have a clue why I didn’t spot that sooner lol.