iris-discord
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i iris-discord

Weekly Downloads

2

Version

0.1.2

License

ISC

Unpacked Size

42.4 kB

Total Files

16

Last publish

Collaborators

  • btx_yt