#Get message id

1 messages · Page 1 of 1 (latest)

cerulean parcel
#

message.id

cobalt fossil
#

AttributeError: 'ResponseProxy' object has no attribute 'id'

cerulean parcel
#

what is ctx in first place

cobalt fossil
#

slash command context

#

lightbulb.SlashContext

cerulean parcel
cobalt fossil
#

Okay, but how do I get the ID from this message object? the attribute id still doesnt exist

cerulean parcel
#

every hikari.Message has ID

cobalt fossil
#

Huh? I have this thing now

message_object = message.message()

I don't understand sorry 🙈

cerulean parcel
#

async ctx.respond(...) returns ResponseProxy

#

ResponseProxy has async message() (note the async word)

#

you need to await it

cobalt fossil
#

message_object = await message.message()

Okay...

#

The id attribute just magically appeared, wasn't there before.