Jda: Add role to user

Created on 24 Jan 2017  路  3Comments  路  Source: DV8FromTheWorld/JDA

I can't find anywhere how I would add a Role to a User/Member.

I saw somewhere there was a GuildManager#addRoleToUser method however this method does not seem to exist.

Any help would be appreciated.

Most helpful comment

You can manage the roles of a Member in JDA 3.x using the GuildController.
Back in older JDA versions you were able to use the GuildManager#addRoleToUser method, however with JDA 3 we moved these to the GuildController.

All 3 comments

You can manage the roles of a Member in JDA 3.x using the GuildController.
Back in older JDA versions you were able to use the GuildManager#addRoleToUser method, however with JDA 3 we moved these to the GuildController.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefaandevylder picture stefaandevylder  路  5Comments

Frederikam picture Frederikam  路  3Comments

Frederikam picture Frederikam  路  4Comments

YukioKeno picture YukioKeno  路  6Comments

xeu100 picture xeu100  路  5Comments