Package com.github.mafelp.discord
Class RoleAdmin
java.lang.Object
com.github.mafelp.discord.RoleAdmin
public class RoleAdmin
extends java.lang.Object
Class to manage the role that allows users to see the channel,
specified in ChannelAdmin
-
Constructor Summary
Constructors Constructor Description RoleAdmin() -
Method Summary
Modifier and Type Method Description static org.javacord.api.entity.permission.RolecreateNewRole(org.javacord.api.entity.server.Server server, java.lang.String name, org.javacord.api.entity.message.embed.EmbedBuilder successEmbed, org.javacord.api.entity.channel.ServerTextChannel successChannel)Method creates a new Role on a server with the specified name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RoleAdmin
public RoleAdmin()
-
-
Method Details
-
createNewRole
public static org.javacord.api.entity.permission.Role createNewRole(org.javacord.api.entity.server.Server server, java.lang.String name, org.javacord.api.entity.message.embed.EmbedBuilder successEmbed, org.javacord.api.entity.channel.ServerTextChannel successChannel) throws java.util.concurrent.CompletionExceptionMethod creates a new Role on a server with the specified name.- Parameters:
server- The server to create the new role on.name- The name of the new role.successEmbed- The embed to sent the user on success.successChannel- The channel to sent the successEmbed to.- Returns:
- The newly created role
- Throws:
java.util.concurrent.CompletionException
-