1e8475456a
- Make the gateway fetches guilds from Discord response - Fetch guilds with only ID and client - Make more types - Fix lint errors Co-Authored-By: Y <8479056+yky4589@users.noreply.github.com> Co-Authored-By: khk4912 <30457148+khk4912@users.noreply.github.com> Co-Authored-By: Aki <71239005+AkiaCode@users.noreply.github.com> Co-Authored-By: Choi Minseo <minseo0388@outlook.com>
15 lines
415 B
TypeScript
15 lines
415 B
TypeScript
import { Client } from '../models/client.ts'
|
|
import { Guild } from '../structures/guild.ts'
|
|
import { GatewayIntents } from '../types/gatewayTypes.ts'
|
|
import { TOKEN } from './config.ts'
|
|
|
|
const bot = new Client()
|
|
|
|
bot.connect(TOKEN, [GatewayIntents.GUILD_MESSAGES])
|
|
|
|
Guild.autoInit(bot, '').then(a => console.log(a))
|
|
|
|
setTimeout(async () => {
|
|
const result = Guild.autoInit(bot, '')
|
|
console.log(result)
|
|
}, 30000)
|