first commit

This commit is contained in:
Joren 2024-06-28 00:51:24 +02:00
commit 92d22d7ef0
Signed by: Joren
GPG Key ID: 280E33DFBC0F1B55

32
index.ts Normal file
View File

@ -0,0 +1,32 @@
import { Client, Guild } from 'discord.js-selfbot-v13';
const token = '';
class InfoClient extends Client {
public constructor() {
super();
this.init();
}
private async init(): Promise<void> {
this.once('ready', () => this.onReady());
await this.login(token);
}
private onReady(): void {
console.log(`Logged in as ${this.user?.tag}!`);
this.guilds.cache.forEach((guild: Guild) => {
console.log(`Guild: ${guild}`);
const channels = guild.channels.cache;
console.log(`There are ${channels.size} channels in the guild.`);
channels.forEach(channel => {
console.log(`- ${channel.name} (${channel.type} ${channel.id})`);
});
});
process.exit();
}
}
new InfoClient();