#specific channel

1 messages · Page 1 of 1 (latest)

devout swift
#

elaborate on "doesn't work" please

wooden crow
#

let me run it again

#

to see

#

oh nvm

#

it worked

#

I also

#

added a catch err

devout swift
#

seeing the error would probably help

wooden crow
#

it doesn't error no more

#

I think I fixed it

#

and it send

devout swift
wooden crow
#

i also

#

have a question

#

how do I send a webhook

#

and then

#

edit it

#

to add fields

#

like

#

data.requester.username

#

into it

devout swift
#

okay. so first - please write sentences not words

wooden crow
#

ah yes

devout swift
#

this is incredibly annoying to read

wooden crow
#

my style sorry

crimson mothBOT
wooden crow
#

ok thx

#

wait

#

no I didn't mean that

#

I ment how do I add fileds while not been already sent

#

Before sending it

devout swift
#

what

wooden crow
#

so like

#

like this : .send('User ' + data.requester.username + " requsted to the group and was accepted successfully!")

#

data.requester.username should be in

devout swift
#

yes?

wooden crow
#

ye, how do I make it for webhooks

#

setDescription('User ' + data.requester.username + " requsted to the group and was accepted successfully!")

#

?

devout swift
#

sure?

wooden crow
#

?

devout swift
#

what's your question? you concatenate 3 strings to one and then set the description to it

wooden crow
#

I'm asking

devout swift
#

try it and see?

wooden crow
#

If I can do it like a normal .send message

#

ok

devout swift
#

or, alternatively, read the docs
they tell you everything you need to answer this

wooden crow
#

ok

#

thx