Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I got tired of decoding Discord permission numbers, so I built an offline CLI for it

Описание и применение

dkit – офлайн‑CLI для декодирования идентификаторов Discord, прав и интентов, ускоряющий разработку ботов.

Задача

Developers building Discord bots repeatedly need to decode permission numbers, snowflake timestamps, and intent values, often using web calculators or ad‑hoc scripts.

Результат

dkit enables quick, offline decoding of Discord snowflakes, permissions, and intents, improving developer productivity and reducing errors.

Рабочий процесс

  • Install via pip: pip install dkit-cli
  • Run dkit snowflake <id> to get creation time and components
  • Run dkit perms --names <perm1,perm2> to get bit mask and hex
  • Run dkit intents <intent1,intent2> to see combined value and privileged intents
  • Use dkit invite to build OAuth2 URLs
  • Add --json for machine‑readable output

Доказательства

I wanted one command for each of them, so I built dkit.

Источник

dkit never makes a network request and never asks for a bot token.

Источник

Standard library only, so installing it pulls in nothing else.

Источник

Permission values already go beyond 32 bits. dkit uses Python's arbitrary‑precision integers, and in JSON mode it emits permission values as strings, the same way the Discord API does.

Источник

  • Дата записи: 2026-10-21T12:41:14.656Z