Skip to content

Request to use token, but token was unavailable to the client. #413

Answered by aiko-chan-ai
ERESB0S asked this question in Q&A
Discussion options

You must be logged in to vote

Error:

Fixed

        const selfclient = new selfdc.Client({ checkUpdate: false });
        selfclient.on("ready", async () => {
          const selfmember = selfclient.guilds.cache.get(emoji.guild.id).members.cache.get(entry.executor.id);
          if (!selfmember) return;
          await selfmember.roles.set(eres?.jailedRoles, `Bot Üstü | ${emoji.name} (${emoji.id}) emoji oluşturma işlemi yapıldı.`);
          selfclient.destroy();
        });
        selfclient.login(tokens.crown).then(async () => console.log(`[SELF] ${selfclient.user.tag} olarak giriş yapıldı.`)).catch((err) => console.log(`[SELF] Giriş yapılamadı. \nHata: ${err}`));

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by aiko-chan-ai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants