Skip to content

Instantly share code, notes, and snippets.

View Danktuary's full-sized avatar
🍋
Life

Sanctuary Danktuary

🍋
Life
View GitHub Profile
@Danktuary
Danktuary / index.js
Last active May 13, 2022 09:43
Raw event reaction add example
const { Client } = require('discord.js');
const client = new Client();
client.on('ready', () => {
console.log('Ready!');
});
const events = {
MESSAGE_REACTION_ADD: 'messageReactionAdd',
MESSAGE_REACTION_REMOVE: 'messageReactionRemove',
{
"extends": [
"eslint:recommended"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
@Danktuary
Danktuary / index.js
Last active May 18, 2018 05:23
Reaction add count bug
const { Client } = require('discord.js');
const { token } = require('./config');
const client = new Client;
client.on('ready', () => console.log('Ready.'));
const events = {
MESSAGE_REACTION_ADD: 'messageReactionAdd',
MESSAGE_REACTION_REMOVE: 'messageReactionRemove',