first commit
This commit is contained in:
commit
92d22d7ef0
32
index.ts
Normal file
32
index.ts
Normal 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();
|
||||
|
Loading…
Reference in New Issue
Block a user