mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-09 17:36:23 +00:00
Improve code quality and use new settings route
Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com>
This commit is contained in:
parent
2759626c56
commit
4f3ae59bc7
1 changed files with 1 additions and 5 deletions
|
@ -83,11 +83,7 @@ export default definePlugin({
|
||||||
if (RelationshipStore.isBlocked(message.author.id)) {
|
if (RelationshipStore.isBlocked(message.author.id)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (this.options.ignoreIgnoredMessages && RelationshipStore.isIgnored(message.author.id)) {
|
return settings.store.ignoreIgnoredMessages && RelationshipStore.isIgnored(message.author.id);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
new Logger("NoBlockedMessages").error("Failed to check if user is blocked or ignored:", e);
|
new Logger("NoBlockedMessages").error("Failed to check if user is blocked or ignored:", e);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue