wrapping up join command
- API untested
This commit is contained in:
@@ -42,45 +42,5 @@ exports.customSlashCommandBuilder = class customSlashCommandBuilder extends Slas
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
return new class extends SlashCommandStringOption {
|
||||
constructor() {
|
||||
super();
|
||||
getAllNodes((nodeObjects) => {
|
||||
this.name = "preset"
|
||||
this.required = "false"
|
||||
|
||||
var presetsAvailable = [];
|
||||
for (const nodeObject of nodeObjects) {
|
||||
nodeObject.nearbySystems = BufferToJson(nodeObject.nearbySystems);
|
||||
log.DEBUG("Node object: ", nodeObject);
|
||||
for (const presetName in nodeObject.nearbySystems) presetsAvailable.push(nodeObject.nearbySystems[presetName]);
|
||||
}
|
||||
|
||||
log.DEBUG("All Presets available: ", presetsAvailable);
|
||||
|
||||
// Remove duplicates
|
||||
presetsAvailable = [...new Set(presetsAvailable)];
|
||||
log.DEBUG("DeDuped Presets available: ", presetsAvailable);
|
||||
|
||||
var choicesList = []
|
||||
for (const preset of presetsAvailable){
|
||||
log.DEBUG("Preset: ", preset);
|
||||
choicesList.push({
|
||||
name: preset,
|
||||
value: preset
|
||||
})
|
||||
}
|
||||
|
||||
log.DEBUG("Choice List: ", choicesList);
|
||||
|
||||
this.choices = JSON.stringify(choicesList);
|
||||
return this;
|
||||
});
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user