VoiceButtons: fix crash when user is undefined (#862)

This commit is contained in:
oma 2026-03-02 20:19:19 -05:00 • committed by GitHub
parent 5662a5e70e
commit 5cb2ce51ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ export default definePlugin({
replacement: [ replacement: [
{ {
match: /\[\i\.\i\]:\i\}\),children:\[/, match: /\[\i\.\i\]:\i\}\),children:\[/,
replace: "$&$self.renderButtons(arguments[0].user)," replace: "$&$self.renderButtons(arguments[0]?.user),"
} }
] ]
} }