Skip to content

Commit

Permalink
fix srvdata fucky
Browse files Browse the repository at this point in the history
  • Loading branch information
robinrepka authored Feb 16, 2024
1 parent fb71019 commit 2b56517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/moderation/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const init = async (msg, args) => {
const P = { lngs: msg.lang };
const language = args[0];

const serverData = await DB.servers.get(msg.guild.id);
if (!PLX.modPass(msg.member, "kickMembers", serverData)) return msg.channel.send($t("responses.errors.insuperms", P));

const langOptions = shuffle(Languages.i18n).map(lang => {
Expand All @@ -45,7 +46,6 @@ const init = async (msg, args) => {
if ( !langOptions.filter(x=>x.default).length ) langOptions.find(x=>x.value==='en').default = true;

if (language === "refresh") {
const serverData = await DB.servers.get(msg.guild.id);
msg.guild.LANG = serverData.modules.LANGUAGE;
return msg.addReaction(_emoji("yep").reaction);
}
Expand Down

0 comments on commit 2b56517

Please sign in to comment.