Skip to content

Commit

Permalink
chore(bot): type temp components array
Browse files Browse the repository at this point in the history
  • Loading branch information
shayypy committed Feb 1, 2024
1 parent fbcd32a commit 1f25bb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bot/src/commands/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
} from "@discordjs/builders";
import * as api from "api";
import {
APIActionRowComponent,
APIButtonComponent,
APIGuildScheduledEvent,
ButtonStyle,
GuildScheduledEventEntityType,
Expand Down Expand Up @@ -275,7 +277,7 @@ export const pwhlScheduleCallback: ChatInputAppCommandCallback = async (
// })
.toJSON();

let components;
let components: APIActionRowComponent<APIButtonComponent>[] = [];
if (games.length > 0) {
components = [
new ActionRowBuilder<ButtonBuilder>()
Expand Down

0 comments on commit 1f25bb4

Please sign in to comment.