mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
minor fix
This commit is contained in:
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user