Skip to content

Commit

Permalink
add modonly check to lang switch
Browse files Browse the repository at this point in the history
  • Loading branch information
robinrepka authored Feb 16, 2024
1 parent 03a9a72 commit 7af8864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/commands/moderation/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ async function saveLanguage(langTo,scope,interaction,P){
const init = async (msg, args) => {
const P = { lngs: msg.lang };
const language = args[0];


if (!PLX.modPass(msg.member, "kickMembers", serverData)) return msg.channel.send($t("responses.errors.insuperms", P));

const langOptions = shuffle(Languages.i18n).map(lang => {
const emj = typeof lang.flag.id === 'string'
Expand Down

0 comments on commit 7af8864

Please sign in to comment.