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

1.0.7 • Public • Published

Discord Message Logger

My Discord Server NPM version NPM downloads Buy Me A Coffee donate button My Twitter My Twitch

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

ShortByte

📝 License

Copyright © 2021 Leon Enneken.
This project is GPL-2.0 licensed.


Developed with ❤️ by Enneken Solutions in Cologne!

/discord-message-logger/

    Package Sidebar

    Install

    npm i discord-message-logger

    Weekly Downloads

    0

    Version

    1.0.7

    License

    Apache-2.0

    Unpacked Size

    13.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • leonenkn