Skip to content

Commit

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

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

const guild = context.guild;
if (await this.voiceCommandsModule.voiceCommandsEnabledConfigEntry.guildGet(guild)) {
await this.voiceCommandsModule.voiceCommandsEnabledConfigEntry.guildSet(guild, false);
return context.respond(voiceCommandsDisabledPhrase, {});
Expand Down

0 comments on commit 127ed6b

Please sign in to comment.