Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
slash-create
Advanced tools
Create and sync Discord slash commands.
If you want an easy start on getting slash commands on your bot, you can use slash-up to create a project using a template.
npx slash-up init
After creating a project, you can edit commands to your liking and start it up with yarn start
.
You can also deploy a slash-create template to the following services:
Cloudflare Workers | Vercel | Heroku | Railway |
---|---|---|---|
npm i slash-create
Or, using yarn:
yarn add slash-create
In order to use a specific webserver, you will need to install the dependency associated with that server. The following server types require these dependencies:
AWSLambdaServer
: none technically, meant for use with AWS Lambda and Amazon API Gateway, see exampleAzureFunctionServer
: none technically, meant for use with Azure Functions, see exampleBunServer
: none, meant for use in the Bun runtimeCloudflareWorkerServer
: none, only available in the web export via slash-create/web
ExpressServer
: express
FastifyServer
: fastify
GatewayServer
: none, see exampleGCFServer
: none technically, meant for use with @google-cloud/functions-framework
, see exampleVercelServer
: none, see exampleThis project borrows resources and references from the following repositories:
[6.3.0] - 2024-09-25
InitialCallbackResponse
, multiple functions can return this instead of a boolean denoting successpostCallbacks
option to serve 202s to interactions and POST a callback insteadMessageInteractionContext#launchActivity
SlashCommand#getMention
MessageInteractionContext#defer
now supports using any message flagsMessageAttachmentOptions
to support voice message propertiescall
)position
and thread
)poll
)activity
applicationID
messageSnapshots
)stickerItems
)Message#interactionMetadata
parsing has been updated and fixed to include more dataname_localizations
waveform
, duration_secs
, flags
, title
, and ephemeral
Message#components
to be an array of any component rather than just action rows (See https://github.com/discord/discord-api-docs/pull/7115)FAQs
Create and sync Discord slash commands!
We found that slash-create demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.