mirror of
https://github.com/sern-handler/handler
synced 2026-06-16 21:02:16 +00:00
fix(readyEvent) filtered opposite
This commit is contained in:
@@ -45,8 +45,9 @@ export function ignoreNonBot(prefix : string) {
|
||||
(m : Message) =>
|
||||
m.content
|
||||
.slice(0,prefix.length)
|
||||
.toLocaleLowerCase()
|
||||
.indexOf(prefix.toLocaleLowerCase()) !== -1
|
||||
.localeCompare(prefix,
|
||||
undefined, { sensitivity : 'accent' }
|
||||
) === 0
|
||||
].every( fn => fn(m));
|
||||
|
||||
if (passAll) {
|
||||
|
||||
Reference in New Issue
Block a user