Robloxdotnet 1.2.1
dotnet add package Robloxdotnet --version 1.2.1
NuGet\Install-Package Robloxdotnet -Version 1.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Robloxdotnet" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Robloxdotnet --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Robloxdotnet, 1.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Robloxdotnet as a Cake Addin #addin nuget:?package=Robloxdotnet&version=1.2.1 // Install Robloxdotnet as a Cake Tool #tool nuget:?package=Robloxdotnet&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Robloxdotnet
Robloxdotnet is an unofficial asynchronous Roblox API wrapper library for the C# language. The full documentation can be found at https://github.com/Loravis/Robloxdotnet/wiki.
Features
- Get user information
- Authentication
- Send group shouts
- Update user group roles
- Get user's group information
Examples
Get a user's description
using System;
using Robloxdotnet;
ulong userId = 1; //Insert any userId of your choice
var userInfo = await Roblox.GetUserInfo(userId); //Get the user's information
Console.WriteLine(userInfo.description); //Output the user description
Log into your Roblox account
using System;
using Robloxdotnet;
//Disclaimer: Storing your .ROBLOSECURITY directly in your code is strongly discouraged, especially if you're committing your code to a public github repo!
string roblosecurityCookie = "PASTE_YOUR_.ROBLOSECURITY_COOKIE_HERE";
RobloxSession session = new RobloxSession();
try
{
await session.LoginAsync(roblosecurityCookie); //Log into your Roblox account using your roblosecurity cookie
Console.WriteLine("Logged in as: " + session.name); //Output your Roblox account's username
} catch (Exception ex)
{
Console.WriteLine(ex.Message); //Output the exception message if the login fails
}
Update a user's group role
using System;
using Robloxdotnet;
using Robloxdotnet.Utilities.Groups;
//Disclaimer: Storing your .ROBLOSECURITY directly in your code is strongly discouraged, especially if you're committing your code to a public github repo!
string roblosecurityCookie = "PASTE_YOUR_.ROBLOSECURITY_COOKIE_HERE";
RobloxSession session = new RobloxSession();
try
{
await session.LoginAsync(roblosecurityCookie); //Log into your Roblox account using your roblosecurity cookie
ulong userId = 1; //Insert the user's user ID here
ulong groupId = 12345; //Insert the group's group ID here
int role = 255; //Insert the roles's role number here
await MemberManagement.SetUserGroupRole(session, userId, groupId, role); //Update the group role of the specified user
} catch (Exception ex)
{
Console.WriteLine(ex.Message); //Output the exception message
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Newtonsoft.Json (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- Added Roblox.GetUserThumnail