### ApplicationIntegrationTypeConfiguration OAuth2InstallParams Property (C#) Source: https://netcord.dev/docs/NetCord Retrieves the OAuth2 installation parameters for the default in-app authorization link for each installation context. This property is crucial for configuring how applications are installed and authorized within different environments. ```csharp public ApplicationInstallParams? OAuth2InstallParams { get; } ``` -------------------------------- ### Type Property for ParameterCountMismatchResult (C#) Source: https://netcord.dev/docs/NetCord.Services Gets the specific type of parameter count mismatch. This property returns a ParameterCountMismatchType enum value. ```csharp public ParameterCountMismatchType Type { get; } ``` -------------------------------- ### Untitled No description -------------------------------- ### ApplicationIntegrationTypeConfiguration Class Source: https://netcord.dev/docs/NetCord Details about the ApplicationIntegrationTypeConfiguration class, its constructor, and properties. ```APIDOC ## Class ApplicationIntegrationTypeConfiguration Namespace NetCord Assembly NetCord.dll ```csharp public class ApplicationIntegrationTypeConfiguration : IJsonModel ``` Inheritance object ApplicationIntegrationTypeConfiguration Implements IJsonModel ### Constructors #### ApplicationIntegrationTypeConfiguration(JsonApplicationIntegrationTypeConfiguration) ```csharp public ApplicationIntegrationTypeConfiguration(JsonApplicationIntegrationTypeConfiguration jsonModel) ``` Parameters `jsonModel` JsonApplicationIntegrationTypeConfiguration ### Properties #### OAuth2InstallParams Install params for each installation context's default in-app authorization link. ```csharp public ApplicationInstallParams? OAuth2InstallParams { get; } ``` Property Value ApplicationInstallParams ``` -------------------------------- ### Join Voice Channel using GatewayClientExtensions Source: https://netcord.dev/docs/NetCord.Gateway.Voice The JoinVoiceChannelAsync method allows a GatewayClient to connect to a specified voice channel within a guild. It requires the guild ID, channel ID, and optionally accepts configuration and a cancellation token. This method is not thread-safe for concurrent operations on the same guild. ```csharp public static Task JoinVoiceChannelAsync(this GatewayClient client, ulong guildId, ulong channelId, VoiceClientConfiguration? configuration = null, CancellationToken cancellationToken = default) ``` -------------------------------- ### GatewayClient - JoinVoiceChannelAsync Source: https://netcord.dev/docs/NetCord.Gateway.Voice Allows a GatewayClient to join a specified voice channel within a guild. ```APIDOC ## POST /websites/netcord_dev/GatewayClientExtensions/JoinVoiceChannelAsync ### Description Joins a voice channel. This method is not thread safe and should not be used concurrently for the same `guildId`. ### Method POST ### Endpoint /websites/netcord_dev/GatewayClientExtensions/JoinVoiceChannelAsync ### Parameters #### Path Parameters - **guildId** (ulong) - Required - The ID of the guild containing the channel. - **channelId** (ulong) - Required - The ID of the voice channel to join. #### Query Parameters - **configuration** (VoiceClientConfiguration) - Optional - Configuration settings for the VoiceClient. - **cancellationToken** (CancellationToken) - Optional - Cancellation token for the operation. If not cancellable, the default timeout of 2 seconds is used. #### Request Body (Not applicable for this endpoint, parameters are passed via path and query) ### Request Example (No request body for this operation) ### Response #### Success Response (200) - **VoiceClient** (Task) - A task, the result of which is an unconnected VoiceClient instance. #### Response Example (Example response would be a Task which resolves to a VoiceClient object) ``` -------------------------------- ### Construct ChannelMenuInteractionContext (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Constructor for the ChannelMenuInteractionContext class. It initializes the context with a ChannelMenuInteraction and a GatewayClient, providing access to interaction details and client functionalities. ```csharp public ChannelMenuInteractionContext(ChannelMenuInteraction interaction, GatewayClient client) ``` -------------------------------- ### ChannelMenuInteractionContext Constructor Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Initializes a new instance of the ChannelMenuInteractionContext class. ```APIDOC ## ChannelMenuInteractionContext(ChannelMenuInteraction, GatewayClient) ### Description Initializes a new instance of the ChannelMenuInteractionContext class. ### Method CONSTRUCTOR ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response None ``` -------------------------------- ### Untitled No description -------------------------------- ### ApplicationIntegrationTypeConfiguration Constructor (C#) Source: https://netcord.dev/docs/NetCord Initializes a new instance of the ApplicationIntegrationTypeConfiguration class using a provided JSON model. This constructor is essential for deserializing configuration data from a JSON source into a usable object. ```csharp public ApplicationIntegrationTypeConfiguration(JsonApplicationIntegrationTypeConfiguration jsonModel) ``` -------------------------------- ### SByteTypeReader Constructor (C#) Source: https://netcord.dev/docs/NetCord.Services.ApplicationCommands.TypeReaders Provides the default constructor for the SByteTypeReader class. This constructor initializes a new instance of the SByteTypeReader. ```csharp public SByteTypeReader() ``` -------------------------------- ### SByteTypeReader Class Source: https://netcord.dev/docs/NetCord.Services.ApplicationCommands.TypeReaders Provides information about the SByteTypeReader class, which handles the conversion of string input to sbyte for application commands. ```APIDOC ## Class SByteTypeReader ### Description Represents a type reader for sbyte values within application commands, allowing for conversion from string input to sbyte. ### Namespace NetCord.Services.ApplicationCommands.TypeReaders ### Assembly NetCord.Services.dll ### Type Parameters * `TContext`: The type of the application command context. ### Inheritance * `object` * `SlashCommandTypeReader` * `SByteTypeReader` ### Constructors #### SByteTypeReader() Initializes a new instance of the `SByteTypeReader` class. ### Properties #### Type Gets the application command option type for this reader. * **Returns**: `ApplicationCommandOptionType` ### Methods #### GetMaxValue(SlashCommandParameter, ApplicationCommandServiceConfiguration) Gets the maximum allowed value for an sbyte parameter. * **Parameters**: * `parameter` (SlashCommandParameter) - The parameter being read. * `configuration` (ApplicationCommandServiceConfiguration) - The service configuration. * **Returns**: `double?` - The maximum value or null if not applicable. #### GetMinValue(SlashCommandParameter, ApplicationCommandServiceConfiguration) Gets the minimum allowed value for an sbyte parameter. * **Parameters**: * `parameter` (SlashCommandParameter) - The parameter being read. * `configuration` (ApplicationCommandServiceConfiguration) - The service configuration. * **Returns**: `double?` - The minimum value or null if not applicable. #### ReadAsync(string, TContext, SlashCommandParameter, ApplicationCommandServiceConfiguration, IServiceProvider?) Asynchronously reads and converts a string value to an sbyte within the command context. * **Parameters**: * `value` (string) - The string value to read. * `context` (TContext) - The application command context. * `parameter` (SlashCommandParameter) - The parameter being read. * `configuration` (ApplicationCommandServiceConfiguration) - The service configuration. * `serviceProvider` (IServiceProvider?) - The service provider. * **Returns**: `ValueTask` - The result of the type reading operation. ``` -------------------------------- ### Untitled No description -------------------------------- ### ParameterCountMismatchResult Class Definition (C#) Source: https://netcord.dev/docs/NetCord.Services Defines the ParameterCountMismatchResult class, inheriting from ParametersMismatchResult and implementing IFailResult and IExecutionResult. This class is used to represent results where the number of parameters provided for a command execution is incorrect. ```csharp public class ParameterCountMismatchResult : ParametersMismatchResult, IFailResult, IExecutionResult ``` -------------------------------- ### TooFew Property for ParameterCountMismatchResult (C#) Source: https://netcord.dev/docs/NetCord.Services Provides a static instance of ParameterCountMismatchResult representing a scenario where too few parameters were provided. This is a read-only property. ```csharp public static ParameterCountMismatchResult TooFew { get; } ``` -------------------------------- ### Define SByteTypeReader Class (C#) Source: https://netcord.dev/docs/NetCord.Services.ApplicationCommands.TypeReaders Defines the SByteTypeReader class, inheriting from SlashCommandTypeReader and specifying the generic type parameter TContext. This class is responsible for reading and parsing sbyte values for application commands. ```csharp public class SByteTypeReader : SlashCommandTypeReader where TContext : IApplicationCommandContext ``` -------------------------------- ### User Property (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Represents the user who initiated the interaction. This property provides access to the User object. ```csharp public User User { get; } ``` -------------------------------- ### ChannelMenuInteractionContext Properties Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Properties available for the ChannelMenuInteractionContext class. ```APIDOC ## ChannelMenuInteractionContext Properties ### Channel #### Description Gets the text channel associated with the interaction. #### Property Value - **Channel** (TextChannel) - The text channel. ### Client #### Description Gets the gateway client context. #### Property Value - **Client** (GatewayClient) - The gateway client. ### Guild #### Description Gets the guild where the interaction occurred, if applicable. #### Property Value - **Guild** (Guild?) - The guild or null if not in a guild. ### Message #### Description Gets the REST message associated with the interaction. #### Property Value - **Message** (RestMessage) - The REST message. ### SelectedValues #### Description Gets the list of selected channel values from the interaction. #### Property Value - **SelectedValues** (IReadOnlyList) - The list of selected channels. ### User #### Description Gets the user who performed the interaction. #### Property Value - **User** (User) - The user performing the interaction. ``` -------------------------------- ### SByteTypeReader ReadAsync Method (C#) Source: https://netcord.dev/docs/NetCord.Services.ApplicationCommands.TypeReaders The core asynchronous method for reading and parsing an sbyte value from a string input. It takes the value, context, parameter information, configuration, and service provider to perform the conversion and validation. ```csharp public override ValueTask ReadAsync(string value, TContext context, SlashCommandParameter parameter, ApplicationCommandServiceConfiguration configuration, IServiceProvider? serviceProvider) ``` -------------------------------- ### SByteTypeReader GetMinValue Method (C#) Source: https://netcord.dev/docs/NetCord.Services.ApplicationCommands.TypeReaders Overrides the GetMinValue method to potentially return the minimum allowed value for an sbyte. This is used for setting bounds on command parameter inputs. ```csharp public override double? GetMinValue(SlashCommandParameter parameter, ApplicationCommandServiceConfiguration configuration) ``` -------------------------------- ### TooMany Property for ParameterCountMismatchResult (C#) Source: https://netcord.dev/docs/NetCord.Services Provides a static instance of ParameterCountMismatchResult representing a scenario where too many parameters were provided. This is a read-only property. ```csharp public static ParameterCountMismatchResult TooMany { get; } ``` -------------------------------- ### Client Property (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Represents the GatewayClient instance used for the interaction. This property allows access to the underlying client functionalities and events. ```csharp public GatewayClient Client { get; } ``` -------------------------------- ### Define ChannelMenuInteractionContext Class (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Defines the ChannelMenuInteractionContext class, which inherits from BaseChannelMenuInteractionContext and implements various interaction context interfaces. This class is part of the NetCord.Services.dll assembly. ```csharp public class ChannelMenuInteractionContext : BaseChannelMenuInteractionContext, IComponentInteractionContext, IInteractionContext, IGatewayClientContext, IRestMessageContext, IUserContext, IGuildContext, IChannelContext, IContext ``` -------------------------------- ### SByteTypeReader Type Property (C#) Source: https://netcord.dev/docs/NetCord.Services.ApplicationCommands.TypeReaders Overrides the 'Type' property from the base class to return the appropriate ApplicationCommandOptionType for an sbyte. This indicates that the type reader handles byte-sized signed integer values. ```csharp public override ApplicationCommandOptionType Type { get; } ``` -------------------------------- ### SByteTypeReader GetMaxValue Method (C#) Source: https://netcord.dev/docs/NetCord.Services.ApplicationCommands.TypeReaders Overrides the GetMaxValue method to potentially return the maximum allowed value for an sbyte. This is useful for validation and defining command parameter constraints. ```csharp public override double? GetMaxValue(SlashCommandParameter parameter, ApplicationCommandServiceConfiguration configuration) ``` -------------------------------- ### Guild Property (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Represents the guild where the interaction took place. This property may be null if the interaction did not occur within a guild context. ```csharp public Guild? Guild { get; } ``` -------------------------------- ### Channel Property (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Represents the text channel associated with the interaction. This property provides access to the TextChannel object where the interaction occurred. ```csharp public TextChannel Channel { get; } ``` -------------------------------- ### SelectedValues Property (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Represents the list of channels selected by the user in the menu interaction. This property returns a read-only list of Channel objects. ```csharp public IReadOnlyList SelectedValues { get; } ``` -------------------------------- ### Message Property (C#) Source: https://netcord.dev/docs/NetCord.Services.ComponentInteractions Represents the rest message associated with the interaction. This property provides access to the RestMessage object that triggered the interaction. ```csharp public RestMessage Message { get; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.