Skip to content

Commit

Permalink
add group update
Browse files Browse the repository at this point in the history
  • Loading branch information
PAW122 committed Oct 14, 2024
1 parent e1e59be commit 8e8c1bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/normal/add_group.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ async function execute(interaction, client) {
const user_id = interaction.user.id

const data = db.read(`${server_id}.groups`)
if (!data || data.status === false) {
return await interaction.reply("this function is disbaled on this server")

const groups_settings = data.settings
if (!groups_settings || !groups_settings.status || groups_settings.status != true) {
return interaction.reply({ content: 'Groups are disabled on this server.', ephemeral: true });
}

const category_id = data.settings.category_id
Expand Down

0 comments on commit 8e8c1bb

Please sign in to comment.