powercord-org / powercord

A lightweight @discord client mod focused on simplicity and performance.
MIT License
1.2k stars 147 forks source link

Newest Discord update creates null object errors #624

Closed Lock-The-Door closed 2 years ago

Lock-The-Door commented 2 years ago

Describe the bug Many powercord plugins are facing null errors on injection including the command list popup

To Reproduce

  1. Update to the latest discord version
  2. Observe the breaking plugins (the null errors can be found in the console)

Expected behavior Powercord injects its plugins normally and everything works

Desktop (please complete the following information):

Additional context

Error I got for the built in commands plugin

Uncaught (in promise) TypeError: Cannot read property 'prototype' of null
    at Commands.injectAutocomplete (VM1181 C:\Users\...\powercord\src\Powercord\plugins\pc-commands\injectAutocomplete.js:158)
GriefMoDz commented 2 years ago

Thanks for the bug report. I'm here to inform you that a fix was previously implemented under this commit here. For this reason I'll be closing this issue.