mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-06-06 00:07:01 +00:00
Fixed interactions and added the deferReply feature
This commit is contained in:
@@ -60,6 +60,16 @@ export class Interaction extends DataManager {
|
||||
/** @type {interactionOptions} */
|
||||
data;
|
||||
|
||||
async deferReply() {
|
||||
try {
|
||||
await this.client.axiosCustom.post(`/interactions/${this.id}/${this.#token}/callback`, {
|
||||
type: 5
|
||||
});
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Modal} m
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user