VoiceButtons: fix crash when user is undefined (#862)
This commit is contained in:
parent
5662a5e70e
commit
5cb2ce51ac
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ export default definePlugin({
|
|||
replacement: [
|
||||
{
|
||||
match: /\[\i\.\i\]:\i\}\),children:\[/,
|
||||
replace: "$&$self.renderButtons(arguments[0].user),"
|
||||
replace: "$&$self.renderButtons(arguments[0]?.user),"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue