From 68fcc7a1352c909f2c0a42d833d9186ef72d8b42 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 8 Oct 2024 13:49:18 -0500 Subject: [PATCH] fix --- src/webpage/guild.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webpage/guild.ts b/src/webpage/guild.ts index ae2a9a8..e3ab317 100644 --- a/src/webpage/guild.ts +++ b/src/webpage/guild.ts @@ -610,9 +610,9 @@ class Guild extends SnowFlake{ "button", "", "submit", - function(){ + ()=>{ console.log(name, category); - func(name, category); + func.bind(this)(name, category); channelselect.hide(); }, ], @@ -636,11 +636,11 @@ class Guild extends SnowFlake{ "button", "", "submit", - ()=>{ + function(this:Guild){ console.log(name, category); this.createChannel(name, category); channelselect.hide(); - }, + }.bind(this), ], ]); channelselect.show();