harmony/src/test/user.ts

15 lines
309 B
TypeScript
Raw Normal View History

2021-01-24 18:49:08 +00:00
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)