An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        


Sunar simple banner
Visit sunar website

## 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).