0.1.2 • Published 1 year ago
iris-discord v0.1.2
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');