0.1.2 • Published 1 year ago

iris-discord v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Iris JS

import { Client, GatewayIntents, GatewayEvents } from "iris-discord";

const client = new Client({
  intents: [
      GatewayIntents.Guilds
  ]
});
  
client.on(GatewayEvents.Ready, () => {
   console.log('Ready!');
});
 
client.on(GatewayEvents.MessageCreate, async (message: any) => {
   if (message.content === '!ping') {
     message.reply('Pong!')
   }
});
 
client.login('token');