Merge branches 'develop' and 't3chguy/cmds' of github.com:matrix-org/matrix-react-sdk into t3chguy/cmds
Conflicts: src/SlashCommands.tsx
This commit is contained in:
commit
6e61761012
21 changed files with 498 additions and 111 deletions
|
@ -85,7 +85,7 @@ class Command {
|
|||
aliases = [],
|
||||
args = '',
|
||||
description,
|
||||
runFn=undefined,
|
||||
runFn = undefined,
|
||||
category = CommandCategories.other,
|
||||
hideCompletionAfterSpace = false,
|
||||
}: {
|
||||
|
@ -160,6 +160,15 @@ export const Commands = [
|
|||
},
|
||||
category: CommandCategories.messages,
|
||||
}),
|
||||
new Command({
|
||||
command: '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,
|
||||
}),
|
||||
new Command({
|
||||
command: 'ddg',
|
||||
args: '<query>',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue