#Is there a way to tell if a SocketInteraction originated from an ephemeral context?

1 messages · Page 1 of 1 (latest)

upbeat carbon
#

I would like to know, given a SocketInteraction, if it is originating from within an ephemeral message context. Looking around in the API doc, but am having some trouble.

umbral minnow
#

not 100% sure if this works, but if it's a component interaction you could cast Context.Interaction to IComponentInteraction and then you can get the messageflags

        var interaction = Context.Interaction as IComponentInteraction;
        var messageFlags = interaction.Message.Flags;

And I think one of the flags is if it's ephemeral or not