harmony/test/user.ts
2021-04-04 11:22:47 +05:30

14 lines
306 B
TypeScript

import { Client, Intents } from '../mod.ts'
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)