mirror of
https://github.com/zhigang1992/mtcute.git
synced 2026-01-12 17:32:35 +08:00
fix(dispatcher): ignore casing for bot username
This commit is contained in:
@@ -67,7 +67,7 @@ export function command(commands: MaybeArray<string | RegExp>, {
|
||||
if (lastGroup) {
|
||||
const self = msg.client.storage.self.getCached()
|
||||
|
||||
if (self && self.isBot && !self.usernames.includes(lastGroup)) {
|
||||
if (self && self.isBot && !self.usernames.some(u => u.toLowerCase() === lastGroup.toLowerCase())) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user