mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
fix error in tictactoe
This commit is contained in:
parent
4aa0cfe9fa
commit
19ed241e76
1 changed files with 8 additions and 17 deletions
|
@ -81,23 +81,14 @@ async function tictactoe(interaction, options = {}) {
|
||||||
const decline = new ButtonBuilder().setLabel(interaction.translate("common:DECLINE")).setStyle(ButtonStyle.Danger).setCustomId("declinettt");
|
const decline = new ButtonBuilder().setLabel(interaction.translate("common:DECLINE")).setStyle(ButtonStyle.Danger).setCustomId("declinettt");
|
||||||
const accep = new ActionRowBuilder().addComponents([accept, decline]);
|
const accep = new ActionRowBuilder().addComponents([accept, decline]);
|
||||||
|
|
||||||
let m;
|
const m = interaction.reply({
|
||||||
if (interaction.commandId)
|
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
||||||
m = interaction.reply({
|
opponent: opponent.id,
|
||||||
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
}),
|
||||||
opponent: opponent.id,
|
embeds: [acceptEmbed],
|
||||||
}),
|
components: [accep],
|
||||||
embeds: [acceptEmbed],
|
fetchReply: true,
|
||||||
components: [accep],
|
}).then(m => m);
|
||||||
});
|
|
||||||
else if (!interaction.commandId)
|
|
||||||
m = interaction.reply({
|
|
||||||
content: interaction.translate("fun/tictactoe:INVITE_USER", {
|
|
||||||
opponent: opponent.id,
|
|
||||||
}),
|
|
||||||
embeds: [acceptEmbed],
|
|
||||||
components: [accep],
|
|
||||||
});
|
|
||||||
|
|
||||||
const collector = m.createMessageComponentCollector({
|
const collector = m.createMessageComponentCollector({
|
||||||
componentType: ComponentType.Button,
|
componentType: ComponentType.Button,
|
||||||
|
|
Loading…
Reference in a new issue