/peek→/member-peek (with /peek alias)
| @@ -843,7 +843,8 @@ export function initDefaultSlashCommands() { | ||
| 843 | 843 | helpString: 'Moves a group member down in the group chat list.', |
| 844 | 844 | })); |
| 845 | 845 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ |
| 846 | 846 | name: 'member-peek', |
| 847 | + aliases: ['peek', 'memberpeek', 'peekmember'], | |
| 847 | 848 | callback: peekCallback, |
| 848 | 849 | unnamedArgumentList: [ |
| 849 | 850 | SlashCommandArgument.fromProps({ |
| @@ -3047,7 +3048,7 @@ function performGroupMemberAction(chid, action) { | ||
| 3047 | 3048 | |
| 3048 | 3049 | async function disableGroupMemberCallback(_, arg) { |
| 3049 | 3050 | if (!selected_group) { |
| 3050 | 3051 | toastr.warning('Cannot run /member-disable command outside of a group chat.'); |
| 3051 | 3052 | return ''; |
| 3052 | 3053 | } |
| 3053 | 3054 | |
| @@ -3064,7 +3065,7 @@ async function disableGroupMemberCallback(_, arg) { | ||
| 3064 | 3065 | |
| 3065 | 3066 | async function enableGroupMemberCallback(_, arg) { |
| 3066 | 3067 | if (!selected_group) { |
| 3067 | 3068 | toastr.warning('Cannot run /member-enable command outside of a group chat.'); |
| 3068 | 3069 | return ''; |
| 3069 | 3070 | } |
| 3070 | 3071 | |
| @@ -3115,12 +3116,12 @@ async function moveGroupMemberDownCallback(_, arg) { | ||
| 3115 | 3116 | |
| 3116 | 3117 | async function peekCallback(_, arg) { |
| 3117 | 3118 | if (!selected_group) { |
| 3118 | 3119 | toastr.warning('Cannot run /member-peek command outside of a group chat.'); |
| 3119 | 3120 | return ''; |
| 3120 | 3121 | } |
| 3121 | 3122 | |
| 3122 | 3123 | if (is_group_generating) { |
| 3123 | 3124 | toastr.warning('Cannot run /member-peek command while the group reply is generating.'); |
| 3124 | 3125 | return ''; |
| 3125 | 3126 | } |
| 3126 | 3127 | |
| @@ -3137,7 +3138,7 @@ async function peekCallback(_, arg) { | ||
| 3137 | 3138 | |
| 3138 | 3139 | async function removeGroupMemberCallback(_, arg) { |
| 3139 | 3140 | if (!selected_group) { |
| 3140 | 3141 | toastr.warning('Cannot run /memberremovemember-remove command outside of a group chat.'); |
| 3141 | 3142 | return ''; |
| 3142 | 3143 | } |
| 3143 | 3144 | |