discord-message-logger
v1.0.7
Published
Simple discord message logger to report messages.
Downloads
11
Maintainers
Readme
About
Discord Message Logger is an addon for discord.js. It makes it easy to report messages or render Discord messages on the web.
Installation
Node.js 16.6.0 or newer is required and requires discord.js
npm install discord.js
yarn add discord.js
pnpm add discord.js
Example usage
const { Client, Intents } = require('discord.js');
const { MessageLogger } = require('discord-message-logger');
// OR
import { Client, Intents } from 'discord.js';
import { MessageLogger } from 'discord-message-logger';
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
const messageLogger = new MessageLogger('ACCESS TOKEN REQUIRED');
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('messageCreate', async (message) => {
const uri = await messageLogger.reportMessage(REPORT_USER, message);
});
client.login('token');
You want an access token?
You want to use the library? Then write me on Discord! ShortByte#9115
🤝 Contributing
Contributions, issues and feature requests are welcome. Feel free to check issues page if you want to contribute.
🙏 Support
📝 License
Copyright © 2021 Leon Enneken. This project is GPL-2.0 licensed.
Developed with ❤️ by Enneken Solutions in Cologne!