You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
autocomplete: add missing commands to CommandProvider
This commit is contained in:
@@ -9,11 +9,21 @@ const COMMANDS = [
|
|||||||
args: '<message>',
|
args: '<message>',
|
||||||
description: 'Displays action',
|
description: 'Displays action',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
command: '/part',
|
||||||
|
args: '[#alias:domain]',
|
||||||
|
description: 'Leave room',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
command: '/ban',
|
command: '/ban',
|
||||||
args: '<user-id> [reason]',
|
args: '<user-id> [reason]',
|
||||||
description: 'Bans user with given id',
|
description: 'Bans user with given id',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
command: '/unban',
|
||||||
|
args: '<user-id>',
|
||||||
|
description: 'Unbans user with given id',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
command: '/deop',
|
command: '/deop',
|
||||||
args: '<user-id>',
|
args: '<user-id>',
|
||||||
@@ -43,6 +53,11 @@ const COMMANDS = [
|
|||||||
command: '/ddg',
|
command: '/ddg',
|
||||||
args: '<query>',
|
args: '<query>',
|
||||||
description: 'Searches DuckDuckGo for results',
|
description: 'Searches DuckDuckGo for results',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
command: '/op',
|
||||||
|
args: '<userId> [<power level>]',
|
||||||
|
description: 'Define the power level of a user',
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user