#on_message not loading full embed
1 messages · Page 1 of 1 (latest)
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
what is ticket?
thats the message object
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.")
oh oops
so ticket is a message object?
yeah
issues aside, I love how you type hinted the function return type, but not the parameter types
lol i should probably do that yeah
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.
pythonic things and this is pretty normal
oh okay, thanks for responding