question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Give role to user VB.NET

See original GitHub issue

Tried searching forums, but i dont find nothing that works.

For example, i tried this, but it doesn’t work Await DirectCast(message.Author, SocketGuildUser).AddRoleAsync("Testrole")

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Still34commented, Jun 20, 2018

You would need to fetch the role from somewhere first. Either by LINQing from the socket guild or by using the GetRole method.

Also, for non-erroneous issues, please visit us on the DAPI server instead of opening an issue.

0reactions
ghostcommented, Jun 21, 2018

Found how to do it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assigning Roles to Users (VB)
This method starts by getting the selected role from the RoleList DropDownList. It then uses the Roles.GetUsersInRole(roleName) method to ...
Read more >
Determining Roles VB.NET
I have this, I have my database created, I have 3 tables (Patient, Doctor, Admin) each tables has details about each of these...
Read more >
How to Create users and permissions form in VB. net - YouTube
NET by user https://youtu.be/WuMnh2HhqjA Visual Basic. Net : Change font(type-size) and colors(forecolor-backcolor) in datagridview last row ...
Read more >
How to Create a Multi User Role Based Login System (FULL)
VB. NET MS Access : How to Create a Multi User Role Based Login System (FULL) · Comments4.
Read more >
How to Create a Multi User Role Based Login System (5/5)
NET MS Access (ADO.NET) Point Of Sale Source Code: https://payhip.com/b/JiwLr - VB. NET SQL Server (EF 6) Point Of Sale Source Code: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found