New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@discommand/message-components

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discommand/message-components

discommand's message-components handler

latest
npmnpm
Version
2.1.0
Version published
Weekly downloads
2
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

@discommand/message-components

discommand plugin.

Using

alert! this is Pure ES Module.

  • stable version
npm i @discommand/message-components discommand
  • development version
npm i @discommand/message-components@next discommand
import { ComponentPlugin } from '@discommand/message-components'
import { DiscommandClient } from 'discommand'

const client = new DiscommandClient(
  {
    // ...
  },
  {
    // ...
    plugins: [
      new ComponentPlugin({
        directory: 'your_component_directory',
      }),
    ],
  }
)

client.login('your_token')

components/select.js

import { MessageComponents } from '@discommand/message-components'

export default class extends MessageComponents {
  constructor() {
    super('foo')
  }

  execute(interaction) {
    interaction.update({ content: 'bar', components: [] })
  }
}

Keywords

discommand

FAQs

Package last updated on 29 Sep 2023

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