refactor: rename source -> origin in all commands

This commit is contained in:
ForestOfLight
2026-05-29 23:26:49 +02:00
Unverified
parent e0e12f5dd0
commit f750710732
17 changed files with 76 additions and 76 deletions
@@ -8,11 +8,11 @@ export class InstancesCommand extends Command {
name: 'instances',
description: 'construct.commands.instances',
permissionLevel: CommandPermissionLevel.Any,
callback: (source) => this.run(source)
callback: (origin) => this.run(origin)
});
}
run(source) {
run(origin) {
const names = structureCollection.getInstanceNames();
if (names.length === 0)
return { status: CustomCommandStatus.Success, message: 'construct.commands.instances.empty' };
@@ -29,7 +29,7 @@ export class InstancesCommand extends Command {
});
rawtext.push({ text: '\n' });
}
source.sendMessage({ rawtext });
origin.sendMessage({ rawtext });
return { status: CustomCommandStatus.Success };
}