Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@johndavisdev/discord-emcee
Advanced tools
A library for easily building user interfaces on top of the Discord MessageComponent APIs.
A library for easily building user interfaces on top of the Discord MessageComponent APIs.
Explore the docs »
Report Bug
·
Request Feature
import { prompt, sb } from 'discord-emcee';
const LanguageNames = ['English', 'Spanish'] as const;
type Language = typeof LanguageNames[number];
const s = sb.createSchema({
model: sb.optionInput<Language>({
values: [
{ result: 'English' },
{ result: 'Spanish', label: 'Español' }, // Set custom UI label
],
})
})
// This ends up being:
// {
// model: Language
// }
type SchemaType = sb.Infer<typeof s>;
const formReady = (v: SchemaType): boolean => {
if (!v.model) return false;
return true;
}
// The Discord client interaction object...
let interaction = ...;
const result: SchemaType = await prompt(s, {
title: 'Select language:',
}, formReady, interaction)
There are many great README templates available on GitHub; however, I didn't find one that really suited my needs so I created this enhanced one. I want to create a README template so amazing that it'll be the last one you ever need -- I think this is it.
Here's why:
Of course, no one template will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue. Thanks to all the people have contributed to expanding this template!
Use the BLANK_README.md
to get started.
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
npm install npm@latest -g
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
git clone https://github.com/your_username_/Project-Name.git
npm install
config.js
const API_KEY = 'ENTER YOUR API';
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - @your_twitter - email@example.com
Project Link: https://github.com/your_username/repo_name
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!
FAQs
A library for easily building user interfaces on top of the Discord MessageComponent APIs.
The npm package @johndavisdev/discord-emcee receives a total of 0 weekly downloads. As such, @johndavisdev/discord-emcee popularity was classified as not popular.
We found that @johndavisdev/discord-emcee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.