harmony/test/user.ts

15 lines
306 B
TypeScript
Raw Normal View History

2021-04-04 05:52:47 +00:00
import { Client, Intents } from '../mod.ts'
2021-01-24 18:49:08 +00:00
import { TOKEN } from './config.ts'
const client = new Client()
client.on('ready', async () => {
client.editUser({
username: 'Learning'
})
const channel = await client.createDM('USER_ID')
channel.send('nice')
})
client.connect(TOKEN, Intents.All)