Skip to content

Commit

Permalink
common_query: add export reply_text
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 committed Nov 4, 2024
1 parent 96ef59d commit b59a3c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common_query.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from 'discord.js';
import * as ygo from './ygo-query.mjs';
import { choice_table } from './common_all.js';

const response = {
export const reply_text = {
'zh-tw': {
none: '沒有符合條件的卡片。',
},
Expand Down Expand Up @@ -127,11 +127,11 @@ export async function query_command(interaction, input_locale, output_locale, se
}
}
else {
await interaction.reply(response[output_locale].none);
await interaction.reply(reply_text[output_locale].none);
console.error('Invalid card cid', cid);
}
}
else {
await interaction.reply(response[output_locale].none);
await interaction.reply(reply_text[output_locale].none);
}
}

0 comments on commit b59a3c6

Please sign in to comment.