mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Fix
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
"Now. Why don't you choose?\nThe red box, or the blue box?\n\n...It's all right, you won't lose anything by picking either one. ...Come on now.",
|
"Now. Why don't you choose?\nThe red box, or the blue box?\n\n...It's all right, you won't lose anything by picking either one. ...Come on now.",
|
||||||
{
|
{
|
||||||
"text": "Open the red box or the blue box?",
|
"text": "Open the red box or the blue box?",
|
||||||
"options": ["red", "blue", "red box", "blue box"],
|
"options": ["Red", "Blue"],
|
||||||
"paths": ["red", "blue", "red", "blue"]
|
"paths": ["red", "blue"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"red": [
|
"red": [
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ module.exports = class BoxChoosingCommand extends Command {
|
|||||||
new ButtonBuilder().setCustomId('true').setLabel('Yes').setStyle(ButtonStyle.Success),
|
new ButtonBuilder().setCustomId('true').setLabel('Yes').setStyle(ButtonStyle.Success),
|
||||||
new ButtonBuilder().setCustomId('false').setLabel('No').setStyle(ButtonStyle.Danger)
|
new ButtonBuilder().setCustomId('false').setLabel('No').setStyle(ButtonStyle.Danger)
|
||||||
);
|
);
|
||||||
gameMsg = await gameMsg.edit({ content: line, components: [proceedRows] });
|
gameMsg = await gameMsg.edit({ content: `${line}\n\n_Proceed?_`, components: [proceedRows] });
|
||||||
let buttonPress;
|
let buttonPress;
|
||||||
try {
|
try {
|
||||||
buttonPress = await gameMsg.awaitMessageComponent({
|
buttonPress = await gameMsg.awaitMessageComponent({
|
||||||
|
|||||||
Reference in New Issue
Block a user