https://github.com/sunarjs/discord-limits
A robust library of constants defining Discord's limits.
https://github.com/sunarjs/discord-limits
Last synced: 2 months ago
JSON representation
A robust library of constants defining Discord's limits.
- Host: GitHub
- URL: https://github.com/sunarjs/discord-limits
- Owner: sunarjs
- License: mit
- Created: 2024-07-12T18:14:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T19:47:50.000Z (10 months ago)
- Last Synced: 2025-02-02T03:05:08.995Z (3 months ago)
- Language: TypeScript
- Size: 31.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
## About
A robust library of constants defining Discord's limits, aimed at streamlining bot and application development and integration on the Discord platform.
## Constants
For a full list of constants, please refer to the **[JSR documentation](https://jsr.io/@sunar/discord-limits/doc)**.
- [Application Limits](https://github.com/sunarjs/discord-limits/blob/main/src/application.ts)
- [Autocomplete Limits](https://github.com/sunarjs/discord-limits/blob/main/src/autocomplete.ts)
- [Button Limits](https://github.com/sunarjs/discord-limits/blob/main/src/button.ts)
- [Channel Limits](https://github.com/sunarjs/discord-limits/blob/main/src/channel.ts)
- [Embed Limits](https://github.com/sunarjs/discord-limits/blob/main/src/embed.ts)
- [Emoji Limits](https://github.com/sunarjs/discord-limits/blob/main/src/emoji.ts)
- [Guild Limits](https://github.com/sunarjs/discord-limits/blob/main/src/guild.ts)
- [Interaction Limits](https://github.com/sunarjs/discord-limits/blob/main/src/interaction.ts)
- [Message Limits](https://github.com/sunarjs/discord-limits/blob/main/src/message.ts)
- [Modal Limits](https://github.com/sunarjs/discord-limits/blob/main/src/modal.ts)
- [Moderation Limits](https://github.com/sunarjs/discord-limits/blob/main/src/moderation.ts)
- [Role Limits](https://github.com/sunarjs/discord-limits/blob/main/src/role.ts)
- [Select Menu Limits](https://github.com/sunarjs/discord-limits/blob/main/src/selectMenu.ts)
- [Sticker Limits](https://github.com/sunarjs/discord-limits/blob/main/src/sticker.ts)
- [Text Input Limits](https://github.com/sunarjs/discord-limits/blob/main/src/textInput.ts)
- [User Limits](https://github.com/sunarjs/discord-limits/blob/main/src/user.ts)## Usage
```js
import { ApplicationCommandNameLimit } from 'discord-limits';
console.log('The limit of the application command name is:', ApplicationCommandNameLimit)
```## Contributing
Contributions are welcome! Please feel free to submit a Pull Request on our [GitHub repository](https://github.com/sunarjs/discord-limits).
## Credits
This library was heavily inspired by the [SapphireJS utilities library](https://www.npmjs.com/package/@sapphire/discord-utilities). We extend our gratitude to the SapphireJS team for their excellent work.
## License
Completely free and licensed under the [MIT license](https://github.com/sunarjs/discord-limits/blob/main/README.md). But if you want, you can give me a star on [GitHub](https://github.com/sunarjs/discord-limits).