mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #4296 from waylon531/upstream
Added the /html command
This commit is contained in:
commit
2557875fd2
2 changed files with 10 additions and 0 deletions
|
@ -128,6 +128,15 @@ export const CommandMap = {
|
||||||
},
|
},
|
||||||
category: CommandCategories.messages,
|
category: CommandCategories.messages,
|
||||||
}),
|
}),
|
||||||
|
html: new Command({
|
||||||
|
name: 'html',
|
||||||
|
args: '<message>',
|
||||||
|
description: _td('Sends a message as html, without interpreting it as markdown'),
|
||||||
|
runFn: function(roomId, messages) {
|
||||||
|
return success(MatrixClientPeg.get().sendHtmlMessage(roomId, messages, messages));
|
||||||
|
},
|
||||||
|
category: CommandCategories.messages,
|
||||||
|
}),
|
||||||
ddg: new Command({
|
ddg: new Command({
|
||||||
name: 'ddg',
|
name: 'ddg',
|
||||||
args: '<query>',
|
args: '<query>',
|
||||||
|
|
|
@ -153,6 +153,7 @@
|
||||||
"Usage": "Usage",
|
"Usage": "Usage",
|
||||||
"Prepends ¯\\_(ツ)_/¯ to a plain-text message": "Prepends ¯\\_(ツ)_/¯ to a plain-text message",
|
"Prepends ¯\\_(ツ)_/¯ to a plain-text message": "Prepends ¯\\_(ツ)_/¯ to a plain-text message",
|
||||||
"Sends a message as plain text, without interpreting it as markdown": "Sends a message as plain text, without interpreting it as markdown",
|
"Sends a message as plain text, without interpreting it as markdown": "Sends a message as plain text, without interpreting it as markdown",
|
||||||
|
"Sends a message as html, without interpreting it as markdown": "Sends a message as html, without interpreting it as markdown",
|
||||||
"Searches DuckDuckGo for results": "Searches DuckDuckGo for results",
|
"Searches DuckDuckGo for results": "Searches DuckDuckGo for results",
|
||||||
"/ddg is not a command": "/ddg is not a command",
|
"/ddg is not a command": "/ddg is not a command",
|
||||||
"To use it, just wait for autocomplete results to load and tab through them.": "To use it, just wait for autocomplete results to load and tab through them.",
|
"To use it, just wait for autocomplete results to load and tab through them.": "To use it, just wait for autocomplete results to load and tab through them.",
|
||||||
|
|
Loading…
Reference in a new issue