Skip to content

Commit

Permalink
fix "/settings global allowyoutube" setting the wrong key
Browse files Browse the repository at this point in the history
  • Loading branch information
200percentmicky committed Jan 16, 2025
1 parent 406364c commit da48d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/appcommands/chatinput/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ module.exports = class CommandSettings extends SlashCommand {
case 'allowyoutube': {
const toggle = ctx.options.global.allowyoutube.toggle;

await settings.set('global', toggle, 'emitNewSongOnly');
await settings.set('global', toggle, 'allowYouTube');
this.client.player.options.emitNewSongOnly = toggle;
this.client.ui.reply(ctx, 'ok', toggle === true
? 'Enabled YouTube support.'
Expand Down

0 comments on commit da48d5e

Please sign in to comment.