diff --git a/.dist/guild.js b/.dist/guild.js index 2eee51f..d774d06 100644 --- a/.dist/guild.js +++ b/.dist/guild.js @@ -161,8 +161,7 @@ class Guild extends SnowFlake { function (e) { noti = ["all", "only mentions", "none"].indexOf(e); }, - noti - ], + noti], ["button", "", "submit", _ => { // fetch(this.info.api + `/users/@me/guilds/${this.id}/settings/`, { @@ -173,8 +172,7 @@ class Guild extends SnowFlake { }) }); this.message_notifications = noti; - }] - ]); + }]]); notiselect.show(); } confirmleave() { diff --git a/webpage/guild.ts b/webpage/guild.ts index 11fe3ab..b9c80ea 100644 --- a/webpage/guild.ts +++ b/webpage/guild.ts @@ -167,7 +167,7 @@ class Guild extends SnowFlake{ ["vdiv", ["radio","select notifications type", ["all","only mentions","none"], - function(e){ + function(e:"all"|"only mentions"|"none"){ noti=["all","only mentions","none"].indexOf(e); }, noti