fix: apply fix to all functions on proxied event

This commit is contained in:
Percs 2025-04-29 13:52:43 -05:00
parent b022d5fe06
commit 02ae723a41

View file

@ -78,7 +78,7 @@ export default function (client: ScramjetClient, self: Self) {
return handler[prop].call(target);
}
if (prop in Event.prototype && typeof value === "function") {
if (typeof value === "function") {
return new Proxy(value, {
apply(target, that, args) {
if (that === reciever) {