Package me.romvnly.TownyPlus
Class DiscordSRVChannelCreator
java.lang.Object
me.romvnly.TownyPlus.DiscordSRVChannelCreator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCategoryIfNotExist(net.dv8tion.jda.api.entities.Guild guild, String categoryName) voidcreateChannelIfNotExistInCategory(net.dv8tion.jda.api.entities.Category category, String channelName) voidcreateRoleIfNotExist(net.dv8tion.jda.api.entities.Guild guild, String roleName) voidcreateWebhookIfNotExist(net.dv8tion.jda.api.entities.TextChannel channel, String webhookName) voidhandleDiscordMessageEvent(net.dv8tion.jda.api.events.message.MessageReceivedEvent event)
-
Constructor Details
-
DiscordSRVChannelCreator
public DiscordSRVChannelCreator()
-
-
Method Details
-
createWebhookIfNotExist
public void createWebhookIfNotExist(@Nonnull net.dv8tion.jda.api.entities.TextChannel channel, @Nonnull String webhookName) -
createCategoryIfNotExist
public void createCategoryIfNotExist(@Nonnull net.dv8tion.jda.api.entities.Guild guild, @Nonnull String categoryName) -
createChannelIfNotExistInCategory
public void createChannelIfNotExistInCategory(@Nonnull net.dv8tion.jda.api.entities.Category category, @Nonnull String channelName) -
createRoleIfNotExist
public void createRoleIfNotExist(@Nonnull net.dv8tion.jda.api.entities.Guild guild, @Nonnull String roleName) -
handleDiscordMessageEvent
public void handleDiscordMessageEvent(@Nonnull net.dv8tion.jda.api.events.message.MessageReceivedEvent event)
-