Closed ApophysX closed 2 weeks ago
Can you share a snapshot of your button? That way we see how you have it setup.
i Can :)
that's not how it works
Is that bottom one working? That would be the way to indicate the change happened
No issue, just a question. I created a button in Touch Portal (${value:discord_DM_user}) when I get a DM the user is displayed, when I have read the message and there are no more new messages, the button should display something else. How do you do that?
The event we get from discord only lets us know that one came in, it also will not trigger if that DM is actively open (just like a normal DM sound on discord)
So because we only know when we get a DM, we cant trigger a plugin side event that knows when a DM has been viewed or the notification is gone.
So to 'work around' this we would have to create a custom value and use it to reset the text on the button when we need it to.
Here is an example
I've also attached the button example, you wil have to rename it to a tpb
file name as I had to change it to upload here directly.
Discord-DM-Event-Example.zip
No issue, just a question. I created a button in Touch Portal (${value:discord_DM_user}) when I get a DM the user is displayed, when I have read the message and there are no more new messages, the button should display something else. How do you do that?
The event we get from discord only lets us know that one came in, it also will not trigger if that DM is actively open (just like a normal DM sound on discord)
So because we only know when we get a DM, we cant trigger a plugin side event that knows when a DM has been viewed or the notification is gone.
So to 'work around' this we would have to create a custom value and use it to reset the text on the button when we need it to. Here is an example
I've also attached the button example, you wil have to rename it to a
tpb
file name as I had to change it to upload here directly. Discord-DM-Event-Example.zip
Okay and thank you very much, it works.
No issue, just a question. I created a button in Touch Portal (${value:discord_DM_user}) when I get a DM the user is displayed, when I have read the message and there are no more new messages, the button should display something else. How do you do that?