Only intersect guilds that have the history site enabled
This commit is contained in:
parent
fcda612970
commit
f22e74b599
1 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,12 @@ export default {
|
|||
let registeredGuilds = [];
|
||||
|
||||
for (var gid in config.guilds) {
|
||||
|
||||
// Don't intersect with guilds that have the history site disabled
|
||||
if (!config.guilds[gid].history_site) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (userGuilds.includes(gid)) {
|
||||
registeredGuilds.push(gid);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue