Skip to content

Instantly share code, notes, and snippets.

@GuyInGrey
Created April 4, 2021 03:09
Show Gist options
  • Save GuyInGrey/6ab421f9517575bd0587c712bee792ee to your computer and use it in GitHub Desktop.
Save GuyInGrey/6ab421f9517575bd0587c712bee792ee to your computer and use it in GitHub Desktop.
var props = new SlashCommandCreationProperties()
{
Name = "elite",
Description = "Commands related to Elite: Dangerous.",
Options = new List<ApplicationCommandOptionProperties>()
{
new ApplicationCommandOptionProperties()
{
Name = "status",
Description = "Get Elite's server status.",
Type = ApplicationCommandOptionType.SubCommand,
Required = false,
},
new ApplicationCommandOptionProperties()
{
Name = "carrier",
Description = "Get a fleet carrier's info.",
Type = ApplicationCommandOptionType.SubCommand,
Required = false,
Options = new List<ApplicationCommandOptionProperties>()
{
new ApplicationCommandOptionProperties()
{
Name = "id",
Required = false,
Type = ApplicationCommandOptionType.String,
}
}
},
new ApplicationCommandOptionProperties()
{
Name = "distance",
Description = "Get the distance between two systems.",
Type = ApplicationCommandOptionType.SubCommand,
Required = false,
Options = new List<ApplicationCommandOptionProperties>()
{
new ApplicationCommandOptionProperties()
{
Name = "system1",
Required = true,
Type = ApplicationCommandOptionType.String,
},
new ApplicationCommandOptionProperties()
{
Name = "system1",
Required = true,
Type = ApplicationCommandOptionType.String,
}
}
},
new ApplicationCommandOptionProperties()
{
Name = "system",
Description = "Get info about a system.",
Type = ApplicationCommandOptionType.SubCommand,
Required = false,
Options = new List<ApplicationCommandOptionProperties>()
{
new ApplicationCommandOptionProperties()
{
Name = "system",
Required = true,
Type = ApplicationCommandOptionType.String,
}
},
},
new ApplicationCommandOptionProperties()
{
Name = "bodies",
Description = "Get celestial bodies in a system.",
Type = ApplicationCommandOptionType.SubCommand,
Required = false,
Options = new List<ApplicationCommandOptionProperties>()
{
new ApplicationCommandOptionProperties()
{
Name = "system",
Required = true,
Type = ApplicationCommandOptionType.String,
}
},
},
new ApplicationCommandOptionProperties()
{
Name = "factions",
Description = "Get factions in a system.",
Type = ApplicationCommandOptionType.SubCommand,
Required = false,
Options = new List<ApplicationCommandOptionProperties>()
{
new ApplicationCommandOptionProperties()
{
Name = "system",
Required = true,
Type = ApplicationCommandOptionType.String,
}
},
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment