Skip to content

Commit

Permalink
Fix missing import in commands/bank/find.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandward committed Apr 13, 2024
1 parent 0946cf0 commit a2ee3d7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions commands/bank/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import _ from 'lodash';
import { AppDataSource } from '../../app_data.js';
import { Bank } from '../../entities/Bank.js';
import { getImageUrl, getSpellDescription, getStatsBlock } from './item_functions.js';
import { formatField, getImageUrl, getSpellDescription, getStatsBlock } from './item_functions.js';

export const data = new SlashCommandBuilder()
.setName('find')
Expand All @@ -22,10 +22,6 @@ export const data = new SlashCommandBuilder()
.setAutocomplete(true),
);

export function formatField(field: string[]): string {
return '```\n' + field.join('\n') + '\n```';
}

export async function autocomplete(interaction: AutocompleteInteraction) {
try {
const focusedOption = interaction.options.getFocused(true);
Expand Down Expand Up @@ -83,7 +79,7 @@ export async function execute(interaction: CommandInteraction) {
}

if (!itemText) {
await interaction.reply('Item not found.');
await interaction.reply({ content: 'Item not found.', ephemeral: true });
return;
}

Expand Down

0 comments on commit a2ee3d7

Please sign in to comment.