Skip to content

Instantly share code, notes, and snippets.

@wooningeire
wooningeire / DiscordGuildMessageCounter.js
Last active November 2, 2017 19:57
Discord.JS self-bot code that fetches the message counts for each user in a guild. (originally written September 7, 2017, revised slightly today)
View DiscordGuildMessageCounter.js
/**
* @file Defines a function used to count the messages of every user in a Discord guild.
* @author wooningc
* @requires discord.js.org
*/
"use strict";
/**
* @function countMessages
* @param {Guild} guild The guild whose members will be iterated through.