Request to use token, but token was unavailable to the client. #413
-
I tried to use the module with my bot. I'm trying to run it with the audit log event. The code I wrote is below. It works in other modules but gives an error in this one. How can I solve it? const { Client } = require("discord.js-selfbot-v13");
const selfclient = new 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;
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.username} olarak giriş yapıldı.`)).catch((err) => console.log(`[SELF] Giriş yapılamadı. \nHata: ${err}`)); |
Beta Was this translation helpful? Give feedback.
Answered by
aiko-chan-ai
Nov 23, 2022
Replies: 2 comments
-
Ah... You mean you can't login with token? |
Beta Was this translation helpful? Give feedback.
0 replies
-
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}`)); |
Beta Was this translation helpful? Give feedback.
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
Error:
Fixed