New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord.js-artisan

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord.js-artisan

Add-in that allows you to delete, save messages with files from the dialogue/channels in the Discord.

  • 1.4.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Discord Artisan

Version Downloads Build status

About

Artisan is the add-in for discord.js which allows you to delete, save messages with files from the dialogue/channels.

Install

  • npm install discord.js-artisan <> yarn add discord.js-artisan

Example

const { Client } = require('discord.js')
const { Artisan } = require('discord.js-artisan')

const bot = new Client()
const artisan = new Artisan({
    pathToSave: 'YOUR_CUSTOM_PATH_HERE',
    saveEmbeds: true
})

bot
    .once('ready', () => console.log('Ready!'))
    .on('message', message => {
        const { id: messageId, author, client, channel, content: cmd } = message
        if (client.user.id !== author.id) return

        // messageId - ID before which there will be a search for messages

        if (cmd === 'dump') return artisan.dumper(channel, messageId)
        else if (cmd === 'clear') return artisan.cleaner(channel, messageId)        
    })
    .login('YOUR_USER_TOKEN_HERE').catch(console.error)

Available options

TypeNameDescriptionDefault
StringpathToSavePath where dumper files will be storedfolder "dump" in work directory
BooleansaveEmbedsWhether to save embedsfalse
BooleansaveAttachmentsWhether to save attachmentstrue

These options need to be placed in the object and passed at constuctor Artisan

Keywords

FAQs

Package last updated on 04 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc