harmony/src/test/index.ts

23 lines
560 B
TypeScript
Raw Normal View History

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])
2020-10-25 00:15:33 +00:00
Guild.autoInit(bot, {
cacheName: 'guild',
endpoint: 'GUILD',
restURLfuncArgs: ['']
}).then((a) => console.log(a))
setTimeout(async () => {
2020-10-25 00:15:33 +00:00
const result = Guild.autoInit(bot, {
cacheName: 'guild',
endpoint: 'GUILD',
restURLfuncArgs: ['']
})
console.log(result)
2020-10-25 00:15:33 +00:00
}, 30000)