/peek→/member-peek (with /peek alias)

ae9296f98923ee89208a4665905a598db534fdb6

Succubyss <87207237+Succubyss@users.noreply.github.com>

1 files changed, +7 -6Showing whitespace changes
public/scripts/slash-commands.js+7 -6
@@ -843,7 +843,8 @@ export function initDefaultSlashCommands() {
843843 helpString: 'Moves a group member down in the group chat list.',
844844 }));
845845 SlashCommandParser.addCommandObject(SlashCommand.fromProps({
846846 name: 'member-peek',
847+ aliases: ['peek', 'memberpeek', 'peekmember'],
847848 callback: peekCallback,
848849 unnamedArgumentList: [
849850 SlashCommandArgument.fromProps({
@@ -3047,7 +3048,7 @@ function performGroupMemberAction(chid, action) {
30473048
30483049async function disableGroupMemberCallback(_, arg) {
30493050 if (!selected_group) {
30503051 toastr.warning('Cannot run /member-disable command outside of a group chat.');
30513052 return '';
30523053 }
30533054
@@ -3064,7 +3065,7 @@ async function disableGroupMemberCallback(_, arg) {
30643065
30653066async function enableGroupMemberCallback(_, arg) {
30663067 if (!selected_group) {
30673068 toastr.warning('Cannot run /member-enable command outside of a group chat.');
30683069 return '';
30693070 }
30703071
@@ -3115,12 +3116,12 @@ async function moveGroupMemberDownCallback(_, arg) {
31153116
31163117async function peekCallback(_, arg) {
31173118 if (!selected_group) {
31183119 toastr.warning('Cannot run /member-peek command outside of a group chat.');
31193120 return '';
31203121 }
31213122
31223123 if (is_group_generating) {
31233124 toastr.warning('Cannot run /member-peek command while the group reply is generating.');
31243125 return '';
31253126 }
31263127
@@ -3137,7 +3138,7 @@ async function peekCallback(_, arg) {
31373138
31383139async function removeGroupMemberCallback(_, arg) {
31393140 if (!selected_group) {
31403141 toastr.warning('Cannot run /memberremovemember-remove command outside of a group chat.');
31413142 return '';
31423143 }
31433144