mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
added message select menus
This commit is contained in:
@@ -150,6 +150,13 @@ export class Client extends EventEmitter {
|
||||
baseURL: "https://discord.com/api/",
|
||||
headers: { Authorization: token }
|
||||
});
|
||||
|
||||
this.axiosCustom.interceptors.response.use((response) => {
|
||||
return response;
|
||||
}, function (err) {
|
||||
// console.log(err);
|
||||
throw `REQUEST FAILED WITH STATUS CODE ${err.response.status} AND REASON "${err.response.data.message}"`;
|
||||
});
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
this.ws = new WebSocket("wss://gateway.discord.gg/?v=10&encoding=json");
|
||||
|
||||
Reference in New Issue
Block a user