#on_message not loading full embed

1 messages · Page 1 of 1 (latest)

jolly moat
#

what's your code?

#

and what does the embed look like?

shell sorrel
#

the code just gets the url from the embed. url = ticket.embeds[0].fields[3].value

#

it prints the url in both cases, but if I don't reload the message, it prints {transcript_url} at the end instead of the actual link

jolly moat
#

what is ticket?

shell sorrel
#

thats the message object

jolly moat
#

how is it defined?

#

?tag codeblock

warped condorBOT
#

Please put your code in a code block:
```py
Here is your Code
```

That makes reading code in Discord a lot easier:

print("This is an example.")
shell sorrel
#

oh oops

jolly moat
#

so ticket is a message object?

shell sorrel
#

yeah

jolly moat
#

issues aside, I love how you type hinted the function return type, but not the parameter types

shell sorrel
#

lol i should probably do that yeah

jolly moat
#

yeah I think it might be python doing something weird

#

I used to pass message objects through stuff and got stupid things that looked like this: "HiThereMyNameIsJohnDoe" when the regular one is "Hi There My Name Is John Doe" and I could never reproduce it outside of my bot.

opal smelt
shell sorrel
#

oh okay, thanks for responding