mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
fix: don't try to save partial guild information
This commit is contained in:
parent
59a6d5a56b
commit
94b21287ad
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ export const GuildInfoSaverPlugin = zeppelinGuildPlugin<GuildInfoSaverPluginType
|
|||
});
|
||||
|
||||
async function updateGuildInfo(guild: Guild) {
|
||||
if (!guild.name) {
|
||||
return;
|
||||
}
|
||||
|
||||
const allowedGuilds = new AllowedGuilds();
|
||||
const existingData = (await allowedGuilds.find(guild.id))!;
|
||||
allowedGuilds.updateInfo(guild.id, guild.name, guild.iconURL(), guild.ownerId);
|
||||
|
|
Loading…
Add table
Reference in a new issue