Skip to content

Commit

Permalink
Fetch 5 only
Browse files Browse the repository at this point in the history
  • Loading branch information
benw202 committed Jan 18, 2024
1 parent 628d4aa commit c81bac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/utils/vatsim/functions/vatsimEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function handleVatsimEvents(interaction: ChatInputCommandInteractio
.then((res) => res.json())
.then((res) => res.data)
.then((res) => res.filter((event: { type: string; }) => event.type === 'Event'))
.then((res) => res.slice(0, 6));
.then((res) => res.slice(0, 5));

const fields: EmbedField[] = eventsList.map((event: any) => {
// eslint-disable-next-line camelcase
Expand Down

0 comments on commit c81bac3

Please sign in to comment.