minor fix

This commit is contained in:
2024-04-01 18:21:31 -07:00
parent b2573f40b2
commit e2d34a63ad
5 changed files with 7 additions and 3 deletions
+3
View File
@@ -151,8 +151,11 @@ export class Client extends EventEmitter {
/**
* @param {String} token
* @param {Boolean} isUser
*/
async login(token, isUser = false) {
if (!token) throw "PLEASE PROVIDE A TOKEN!";
if (!isUser) token = "Bot " + token;
this.axiosCustom = axios.create({
baseURL: "https://discord.com/api/",