mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 10:37:19 +00:00
Add command to add servers from invites with eligibility check
This commit is contained in:
parent
3b09d2d679
commit
f13695c524
7 changed files with 151 additions and 39 deletions
|
@ -250,6 +250,13 @@ connect().then(async () => {
|
|||
|
||||
async getConfig(id) {
|
||||
const key = id === "global" ? "global" : `guild-${id}`;
|
||||
if (id !== "global") {
|
||||
const allowedGuild = await allowedGuilds.find(id);
|
||||
if (!allowedGuild) {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
const row = await guildConfigs.getActiveByKey(key);
|
||||
if (row) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue