How nhqdung/gettoken works
GetToken is a small Vencord plugin for viewing and copying the current Discord account’s token. The user invokes /token; the command retrieves the token and opens a dialog, where the user can reveal it, view account identity, or copy it to the system clipboard. The dialog also reports copy failures, while invalid or unavailable tokens produce a toast. The plugin provides a separate author/about panel. The implementation is concentrated in index.tsx; style.css is imported there. Host services are shown as external because their implementations are not in this repository.
Main entry points: index.tsx Token dialog · style.css Plugin styles
Components 13
Plugin entry
- Plugin registration
index.tsx - `/token` command
index.tsx
Token workflow
- Token manager
- Current-user store
- Clipboard utility
User interface
- Token dialog
index.tsx - Modal UI
- Button UI
- Toast notifications
- Error boundary
- Author panel
index.tsx - Plugin styles
style.css
Other components
- Discord user
Connections 14
- Discord user → `/token` command: invokes
README.md - Plugin registration → `/token` command: registers
index.tsx - `/token` command → Token manager: retrieves token
index.tsx - `/token` command → Token dialog: opens
index.tsx - `/token` command → Toast notifications: reports errors
index.tsx - Token dialog → Current-user store: reads current user
index.tsx - Token dialog → Clipboard utility: copies token
index.tsx - Token dialog → Modal UI: renders
index.tsx - Token dialog → Button UI: renders
index.tsx - Plugin registration → Author panel: provides about panel
index.tsx - Plugin registration → Error boundary: wraps UI
index.tsx - Author panel → Error boundary: is wrapped by
index.tsx - Token dialog → Error boundary: is wrapped by
index.tsx - Plugin registration → Plugin styles: imports
index.tsx