2020-10-22 15:50:47 +00:00
|
|
|
import { Client } from '../models/client.ts'
|
2020-10-23 16:11:00 +00:00
|
|
|
import { Guild } from '../structures/guild.ts'
|
2020-10-22 15:50:47 +00:00
|
|
|
import { GatewayIntents } from '../types/gatewayTypes.ts'
|
2020-10-22 15:55:42 +00:00
|
|
|
import { TOKEN } from './config.ts'
|
2020-10-22 15:50:47 +00:00
|
|
|
|
|
|
|
const bot = new Client()
|
|
|
|
|
2020-10-22 15:55:42 +00:00
|
|
|
bot.connect(TOKEN, [GatewayIntents.GUILD_MESSAGES])
|
2020-10-23 16:11:00 +00:00
|
|
|
|
2020-10-25 00:15:33 +00:00
|
|
|
Guild.autoInit(bot, {
|
|
|
|
cacheName: 'guild',
|
|
|
|
endpoint: 'GUILD',
|
|
|
|
restURLfuncArgs: ['']
|
|
|
|
}).then((a) => console.log(a))
|
2020-10-23 16:11:00 +00:00
|
|
|
|
|
|
|
setTimeout(async () => {
|
2020-10-25 00:15:33 +00:00
|
|
|
const result = Guild.autoInit(bot, {
|
|
|
|
cacheName: 'guild',
|
|
|
|
endpoint: 'GUILD',
|
|
|
|
restURLfuncArgs: ['']
|
|
|
|
})
|
2020-10-23 16:11:00 +00:00
|
|
|
console.log(result)
|
2020-10-25 00:15:33 +00:00
|
|
|
}, 30000)
|