fix(Button + SelectMenu): wrong applicationId #222
This commit is contained in:
parent
0a695d9edc
commit
136bf7ae50
@ -224,6 +224,12 @@ class Client extends BaseClient {
|
|||||||
*/
|
*/
|
||||||
this.usedCodes = [];
|
this.usedCodes = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Session ID
|
||||||
|
* @type {?string}
|
||||||
|
*/
|
||||||
|
this.session_id = null;
|
||||||
|
|
||||||
if (this.options.messageSweepInterval > 0) {
|
if (this.options.messageSweepInterval > 0) {
|
||||||
process.emitWarning(
|
process.emitWarning(
|
||||||
'The message sweeping client options are deprecated, use the global sweepers instead.',
|
'The message sweeping client options are deprecated, use the global sweepers instead.',
|
||||||
|
@ -1016,7 +1016,7 @@ class Message extends Base {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Click specific button [Suggestion: Dux#2925]
|
* Click specific button [Suggestion: Dux#2925]
|
||||||
* @param {string<Button.customId>} buttonID Button ID
|
* @param {string} buttonID Button ID
|
||||||
* @returns {Promise<InteractionResponseBody>}
|
* @returns {Promise<InteractionResponseBody>}
|
||||||
*/
|
*/
|
||||||
async clickButton(buttonID) {
|
async clickButton(buttonID) {
|
||||||
|
@ -180,7 +180,7 @@ class MessageButton extends BaseMessageComponent {
|
|||||||
guild_id: message.guild?.id ?? null, // In DMs
|
guild_id: message.guild?.id ?? null, // In DMs
|
||||||
channel_id: message.channel.id,
|
channel_id: message.channel.id,
|
||||||
message_id: message.id,
|
message_id: message.id,
|
||||||
application_id: message.author.id,
|
application_id: message.applicationId ?? message.author.id,
|
||||||
session_id: message.client.session_id,
|
session_id: message.client.session_id,
|
||||||
message_flags: message.flags.bitfield,
|
message_flags: message.flags.bitfield,
|
||||||
data: {
|
data: {
|
||||||
|
@ -248,7 +248,7 @@ class MessageSelectMenu extends BaseMessageComponent {
|
|||||||
guild_id: message.guild?.id ?? null, // In DMs
|
guild_id: message.guild?.id ?? null, // In DMs
|
||||||
channel_id: message.channel.id,
|
channel_id: message.channel.id,
|
||||||
message_id: message.id,
|
message_id: message.id,
|
||||||
application_id: message.author.id,
|
application_id: message.applicationId ?? message.author.id,
|
||||||
session_id: message.client.session_id,
|
session_id: message.client.session_id,
|
||||||
message_flags: message.flags.bitfield,
|
message_flags: message.flags.bitfield,
|
||||||
data: {
|
data: {
|
||||||
|
Loading…
Reference in New Issue
Block a user