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