public async Task QueueRepeat(InputRepeatType type = InputRepeatType.Queue) { var valid = await ValidateAsync(); if (!valid) { return; } await _service.SetRepeatAsync(ctx.Guild.Id, InputToDbType(type)); if (type == InputRepeatType.None) { await ReplyConfirmLocalizedAsync("repeating_none"); } else if (type == InputRepeatType.Queue) { await ReplyConfirmLocalizedAsync("repeating_queue"); } else { await ReplyConfirmLocalizedAsync("repeating_track"); } }
private PlayerRepeatType InputToDbType(InputRepeatType type) => type switch {