generated from Baipyrus/DiscordJS-Template
bugfix: find responses by keyword
This commit is contained in:
parent
9b4d5a1d02
commit
7f39be34ad
@ -203,8 +203,7 @@ async function infoResponse(interaction) {
|
|||||||
/** @type {import('../../models/responses.js').Response[]} */
|
/** @type {import('../../models/responses.js').Response[]} */
|
||||||
const responses = await Responses.findAll({
|
const responses = await Responses.findAll({
|
||||||
where: {
|
where: {
|
||||||
guild: interaction.guildId,
|
keyword: found.id
|
||||||
name: found.id
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user