Skip to content

Commit

Permalink
fix: wrong variable call when guild owner changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mittelblut9 committed Oct 21, 2023
1 parent 5f2ccd7 commit 4795767
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/events/guildOwnerUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ const Auditlog = require('~utils/classes/Auditlog');

module.exports.guildOwnerUpdate = async (bot, oldGuild, newGuild) => {
const auditLog = new Auditlog();
await auditLog.init(bot, newGuild.guild.id);
await auditLog.init(bot, newGuild.id);
await auditLog.setEmbed({
color: '#B22222',
text: `**Owner has changed**\n**Old Owner**\n${oldGuild.owner}\n**New Owner**\n${newGuild.owner}`,
});
await auditLog.sendToAuditLog({
guildId: newGuild.guild.id,
target: newGuild.guild,
guildId: newGuild.id,
target: newGuild,
});
};

0 comments on commit 4795767

Please sign in to comment.