Skip to content

Commit af0dc07

Browse files
committed
fix: owner change not propagating to api perms
1 parent bd5baf1 commit af0dc07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/src/plugins/GuildInfoSaver/GuildInfoSaverPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function updateGuildInfo(guild: Guild) {
3838
const existingData = (await allowedGuilds.find(guild.id))!;
3939
allowedGuilds.updateInfo(guild.id, guild.name, guild.iconURL(), guild.ownerId);
4040

41-
if (existingData.owner_id !== guild.ownerId || existingData.created_at === existingData.updated_at) {
41+
if (existingData.owner_id !== guild.ownerId) {
4242
const apiPermissions = new ApiPermissionAssignments();
4343
apiPermissions.applyOwnerChange(guild.id, guild.ownerId);
4444
}

0 commit comments

Comments
 (0)