-
I wanna know how to fetch this bot reply from my slash command If possible please show an example too |
Beta Was this translation helpful? Give feedback.
Answered by
NekoCyan
Jan 22, 2023
Replies: 1 comment 1 reply
-
You can do fetch normally, then check if the bot reply to your or specific IDs so we check Message Reference if the same with your Message ID (that sent before) or if the bot mention you, there's Message Mentions with .repliedUser. Here's Message for example: <ref *1> Message {
channelId: '1066765573645676695',
guildId: '763255629296959489',
id: '1046473213925920778',
createdTimestamp: 1674401554525,
type: 19,
system: false,
content: '.',
author: User {
id: '640221677413990513',
bot: false,
system: false,
flags: UserFlagsBitField { bitfield: 0 },
username: 'Pixel',
discriminator: '5769',
avatar: undefined,
banner: undefined,
accentColor: undefined
},
pinned: false,
tts: false,
nonce: '1066765540887642135',
embeds: [],
components: [],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: null,
editedTimestamp: null,
reactions: ReactionManager { message: [Circular *1] },
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: User {
id: '640221677413990513',
bot: false,
system: false,
flags: UserFlagsBitField { bitfield: 0 },
username: 'Pixel',
discriminator: '5769',
avatar: undefined,
banner: undefined,
accentColor: undefined
}
},
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: MessageFlagsBitField { bitfield: 0 },
reference: {
channelId: '1066765573645676695',
guildId: '763255629296959489',
messageId: '1046473213975431546'
},
interaction: null
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
flyrbo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do fetch normally, then check if the bot reply to your or specific IDs so we check Message Reference if the same with your Message ID (that sent before) or if the bot mention you, there's Message Mentions with .repliedUser.
Here's Message for example: