Skip to content

Commit

Permalink
Updated src_modules/voice_commands/commands/Enable
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Sep 2, 2023
1 parent 127ed6b commit 8ce9294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src_modules/voice_commands/commands/EnableAutoJoinCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export class EnableAutoJoinCommand extends Command<[]> {
}

public async execute(context: IExecutionContext<[]>) {
const guild = context.guild.guild;

const guild = context.guild;
if (await this.voiceCommandsModule.autoJoinConfigEntry.guildGet(guild)) {
return context.respond(autoJoinAlreadyEnabledPhrase, {});
}

await this.voiceCommandsModule.autoJoinConfigEntry.guildSet(guild, true);
return context.respond(autoJoinEnabledPhrase, {});
}
Expand Down

0 comments on commit 8ce9294

Please sign in to comment.