Important Note: It seems that the way this extension works is not entirely within Discord's terms of service.
- it does not automatically respond to any messages
- it does not collect information about invites sent in chat channels
However, by using it, you may run the risk of having your discord account terminated.
If you're happy to proceed...
A Discord chat client for vscode.
After installing, go to your settings and set
discord-chat.token to your API token. See here for one way of finding your token. There are other ways too.
NOTE: Keep your token to yourself!
A tree view will show available servers and channels. Click on a channel to open the channel in the output panel. Click the post icon in the tree view or use the
discord-chat: Post command to send a message to the currently selected channel.
Chats are shown in the output view which means that attached images are shown as links. If you install the excellent Image Preview by Kiss Tamás, hovering the mouse over the links will show the image in a pop up.
If you use vscode on multiple machines, you may want to sync your muted servers, channels and last read times. To enable this, use github to generate a personal access token (with gist scope) and update
discord-chat.syncToken. The first time a sync is attempted, a gist will be created and the ID will be stored in your settings in
discord-chat.syncGistId. To sync other instances of vscode, you'll need to copy the
discord-chat: Post - send a message to the selected channel
discord-chat: Post Selection - send the currently selected text to the currently selected channel
discord-chat: Edit Post - allows a previously posted message to be changed
discord-chat: Create Channel - create a new channel on the selected server
discord-chat: Delete Channel - delete the currently selected channel
discord-chat: Mark All Read - reset unread count on all channels on all servers
discord-chat: Mark All Channels on Server as Read - reset unread count on all channels on the currently selected server
discord-chat: Refresh - repopulate the channel list
discord-chat: Mute - mute the currently selected server or channel
discord-chat: Unmute - unmute a previously muted server or channel
discord-chat: Reset Sync - clear sync data
discord-chat: Close Channel - delete the output window for the currently selected channel
discord-chat: Show Unread Only - only show servers and channels with unread content
discord-chat: Show All - show all servers and channels
Note: To prevent a chat from auto hiding while you are reading it, click in the window.
Notifications are generated if a message arrives from a channel other that the currently selected channel. By default these these will only be shown if the channel tree is hidden (or collapsed). See Configuration for other settings.
A muted channel or server will not generate notifications, update it's unread count, or show new messages as they arrive. However, If a muted channel is opened from the tree, the latest messages will be fetched. Note: This form of muting is local to vscode and does not affect any muted state of discord itself.
- [ ] somehow show avatars
- [ ] support categories
You can install the latest version of the extension via the Visual Studio Marketplace here.
The source code is available on GitHub here.
The extension can be customised as follows:
||You need to set this to authenticate with Discord
||Set this to true to put the date, time, name and first line of the message on one line
||Can also be set to "always" or "never"
||The number of previous messages to fetch when opening a channel
||Set this to false if you would rather only see the channel list in a dedicated view in the activity bar
||Set this to true to hide muted servers in the tree
||Set this to true to hide muted channels in the tree
||A github token to allow syncing of muted servers, channels and last read times
||A github gist ID to allow syncing of muted servers, channels and last read times
||Automatically show a channel when a message is received
||Automatically hide a channel after this many seconds of inactivity (Set to 0 to disable)
||Unread message counts are generated at startup. Set this to false to skip
||Set this to false to turn off syncing
This extension only provides features that I currently use or know about. If you feel there is something broken or missing, please add a bug report or feature request in the GitHub repository, here.
Container icon from iconscout.
Extension, Group and Read/Unread icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY
Unmute and Post icon from made by Dave Gandy from www.flaticon.com is licensed by CC 3.0 BY
Direct message icon made by Yannick from www.flaticon.com is licensed by CC 3.0 BY
Tick icon made by Eleonor Wang from www.flaticon.com is licensed by CC 3.0 BY
Mute icon made by Pixel perfect from www.flaticon.com is licensed by CC 3.0 BY