Fixed interactions and added the deferReply feature

This commit is contained in:
ION606
2023-05-04 13:59:12 -04:00
parent 90122ff9d3
commit b2573f40b2
3 changed files with 17 additions and 5 deletions
+10
View File
@@ -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
*/