Skip to content

Commit

Permalink
Updated chart.js - cannot have capticals in names of options
Browse files Browse the repository at this point in the history
  • Loading branch information
coopw1 committed Jan 8, 2024
1 parent 7ec2780 commit 1bf58de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/images/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
required: false,
},
{
name: "timePeriod",
name: "timeperiod",
description: "Time period",
type: ApplicationCommandOptionType.String,
required: false,
Expand Down Expand Up @@ -79,7 +79,7 @@ module.exports = {
return;
}

const timePeriod = interaction.options.get("timePeriod")?.value || "week";
const timePeriod = interaction.options.get("timeperiod")?.value || "week";
const dimension = interaction.options.get("dimension")?.value || 3;

// Create base embed
Expand Down

0 comments on commit 1bf58de

Please sign in to comment.