mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Fix error if game doesnt have small text or large text but only one
This commit is contained in:
parent
5c62c0752f
commit
7a5b11597b
1 changed files with 8 additions and 5 deletions
|
@ -397,11 +397,14 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (member.game.assets) {
|
||||||
member.game.assets &&
|
if (member.game.assets.small_text && member.game.assets.small_text.match(queryRegex)) {
|
||||||
(member.game.assets.small_text.match(queryRegex) || member.game.assets.large_text.match(queryRegex))
|
return true;
|
||||||
) {
|
}
|
||||||
return true;
|
|
||||||
|
if (member.game.assets.large_text && member.game.assets.large_text.match(queryRegex)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (member.game.emoji && member.game.emoji.name.match(queryRegex)) {
|
if (member.game.emoji && member.game.emoji.name.match(queryRegex)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue