From e20d7bd5988cf694dba41fb24169c6647ff18dbd Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Sun, 15 Jan 2023 16:02:12 +0530 Subject: [PATCH] fix typo bug in setting of hasApiHighLimit flag --- src/bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index f112ea4..c9fa7e4 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -747,7 +747,7 @@ export class mwn { uiprop: 'rights', }).then((response: ApiResponse & siteinfoqueryResponse) => { this.title.processNamespaceData(response); - if (response.query.userinfo.rights.includes('apihighlimit')) { + if (response.query.userinfo.rights.includes('apihighlimits')) { this.hasApiHighLimit = true; } if (response.query && response.query.tokens) {