Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Feature Request] Real Username Variable

Open dennisrijsdijk opened this issue 2 years ago • 4 comments

Describe the solution you'd like Real username variable for twitch user based events.

Additional context Currently, the $user and $username variables return the Display Name, which can cause various issues with API, and builtin effects.

dennisrijsdijk avatar Sep 09 '22 05:09 dennisrijsdijk

Added $useridname to return the user's underlaying username for instances where the Display name is ineffectual.

Currently its limited to chat-based events. If you notice events that should be supported but aren't, list them with this feature request

SReject avatar Sep 11 '22 16:09 SReject

I believe this should be available for gift-related events as $giftgifteridname and giftreceiveridname (not community gift) From what I've seen in the commit, this isn't available for regular sub, cheer, follow or raid events either. (omitting Host as it's being depricated soon) I don't believe channel point redemptions are currently supported, I'll be able to check that once the nightly build happens.

dennisrijsdijk avatar Sep 12 '22 14:09 dennisrijsdijk

Going through your list:

Announcements - implemented - $useridname refers to the person that created the announcement

Cheer/Bits - blocked - twurple does not provide the underlying username for cheer events

Cheer/Bits badge - blocked - twurple does not provide the underlying username for cheer badge events

Sub Recipient (not community gift) - implemented - $useridname will refer to the recipient of the sub

Sub Gifter (not community gift) - not implemented - todo

Follow - implemented - $useridname will refer to the user in question

Raid - blocked - twurple does not provide underlying username for raid events.

SReject avatar Sep 12 '22 22:09 SReject

Cheer/Bits provides the userId, which via API can lead to the real username.

dennisrijsdijk avatar Sep 13 '22 14:09 dennisrijsdijk

Added in v5.55.0

zunderscore avatar Feb 01 '23 04:02 zunderscore