Slash commands in Rocket.Chat allows you to execute various actions directly from the message box, making it quicker to complete tasks like managing rooms and interacting with users. By typing a forward slash (/
), followed by the specified command, you can access functions without leaving the chat interface.
When you start typing a forward slash, a menu appears with a list of recently used commands. You can either scroll through these options or continue typing to search for specific commands.
Rocket.Chat comes with a set of default slash commands that are immediately available in your workspace. Additionally, Rocket.Chat Apps may introduce their own commands for effective integration with external services. To explore all available slash commands in your workspace, use the List Slash Commands API.
Below is a list of default slash commands and their functionalities:
Slash command | Action | Permission required |
---|---|---|
/archive <#roomName> | Archives the specified room. |
|
/unarchive <#roomName> | Unarchive the specified room. | |
/create <channelName> | Create a new channel. |
|
/topic <message> | Set a new topic for a room. |
|
/status <statusText> | Update your user status text. | |
/mute <@username> | Mute a user in a room. The room becomes read-only for that user. |
|
/unmute <@username> <message> | Unmute a user in a room. The user can now send messages in the room. |
|
/msg <@username> | Send a DM to a user |
|
/part or /leave | Leave the current room. |
|
/kick <@username> |
| |
/join <#roomName> | Join a room |
|
/gimme <message> | Append ༼ つ ◕_◕ ༽つ to the start of a message. | |
/lennyface <message> | Append ( ͡° ͜ʖ ͡°) at the end of a message. | |
/shrug <message> | Append ¯\_(ツ)_/¯ at the end of a message. | |
/tableflip <message> | Append (╯°□°)╯︵ ┻━┻ at the end of a message. | |
/unflip <message> | Append ┬─┬ ノ( ゜-゜ノ) at the end of a message. | |
/help | Display the keyboard shortcut keys. | |
/hide | Hides the current room from the sidebar. | |
/invite <@username> | Adds a user to the current room. |
|
/invite-all-from <#roomName> | Adds all users from a specified room to the current room. |
|
/invite-all-to <#roomName> | Adds all users from the current room to a specified room. |
|