Feature: Component TypeConverters and CustomID TypeReaders (#2169)
* fix sharded client current user * add custom setter to group property of module builder * rename serilazation method * init * create typemap and default typereaders * add default readers * create typereader targetting flags * seperate custom id readers with component typeconverters * add typereaders * add customid readers * clean up component info argument parsing * remove obsolete method * add component typeconverters to modals * fix build errors * add inline docs * bug fixes * code cleanup and refactorings * fix build errors * add GenerateCustomIdString method to interaction service * add GenerateCustomIdString method to interaction service * add inline docs to componentparameterbuilder * add inline docs to GenerateCustomIdStringAsync method
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Discord.Interactions.Builders
|
||||
/// <summary>
|
||||
/// Represents a builder for creating <see cref="ComponentCommandInfo"/>.
|
||||
/// </summary>
|
||||
public sealed class ComponentCommandBuilder : CommandBuilder<ComponentCommandInfo, ComponentCommandBuilder, CommandParameterBuilder>
|
||||
public sealed class ComponentCommandBuilder : CommandBuilder<ComponentCommandInfo, ComponentCommandBuilder, ComponentCommandParameterBuilder>
|
||||
{
|
||||
protected override ComponentCommandBuilder Instance => this;
|
||||
|
||||
@@ -26,9 +26,9 @@ namespace Discord.Interactions.Builders
|
||||
/// <returns>
|
||||
/// The builder instance.
|
||||
/// </returns>
|
||||
public override ComponentCommandBuilder AddParameter (Action<CommandParameterBuilder> configure)
|
||||
public override ComponentCommandBuilder AddParameter (Action<ComponentCommandParameterBuilder> configure)
|
||||
{
|
||||
var parameter = new CommandParameterBuilder(this);
|
||||
var parameter = new ComponentCommandParameterBuilder(this);
|
||||
configure(parameter);
|
||||
AddParameters(parameter);
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user