You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While developing my Discord bot using Discord.js, I encountered a peculiar issue related to sending message buttons on mobile devices. When I use a command that includes only content and message buttons (without an embed), the buttons are not sent on mobile devices. This problem occurs exclusively on my production bot, which has an approximate ping of 20ms. However, I was unable to reproduce the issue when running the bot on my local machine, which has a ping of around 150ms.
Steps to Reproduce:
Make the bot send a message that contains ONLY content and message buttons (not tested with other components).
Run the command on a PC.
Run the command on a mobile device.
Expected Behavior:
The bot should reply with both the content and the message buttons on both PC and mobile devices.
Actual Behavior:
The bot correctly sends the content and buttons when the command is executed on a PC. However, when the same command is executed on a mobile de
/vice, only the content is displayed, and the buttons are missing.
Additional Information:
The issue occurs specifically on my production bot with a low ping (around 20ms).
The problem could not be reproduced on my local machine, which has a higher ping (approximately 150ms).
I have only tested this behavior with message buttons and not with other types of components.
Code sample
client.on("interactionCreate",(interaction)=>{if(!interaction.isChatInputCommand()||interaction.commandName!=="test")return;interaction.reply({content: "This is a test message",components: [newMessageActionRow().addComponents(newMessageButton().setCustomId("test").setLabel("test").setStyle("PRIMARY"))]});});
Screenshots
On pc
On mobile
Versions
discord.js 13.16.0
nodejs v18.12.1
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered:
Which package is this bug report for?
discord.js
Issue description
Issue
While developing my Discord bot using Discord.js, I encountered a peculiar issue related to sending message buttons on mobile devices. When I use a command that includes only content and message buttons (without an embed), the buttons are not sent on mobile devices. This problem occurs exclusively on my production bot, which has an approximate ping of 20ms. However, I was unable to reproduce the issue when running the bot on my local machine, which has a ping of around 150ms.
Steps to Reproduce:
Expected Behavior:
The bot should reply with both the content and the message buttons on both PC and mobile devices.
Actual Behavior:
The bot correctly sends the content and buttons when the command is executed on a PC. However, when the same command is executed on a mobile de
/vice, only the content is displayed, and the buttons are missing.
Additional Information:
Code sample
Screenshots
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: