Class Channel.ChannelBuilder
java.lang.Object
dev.unnm3d.redischat.api.objects.ChannelAudience.ChannelAudienceBuilder
dev.unnm3d.redischat.api.objects.Channel.ChannelBuilder
- Enclosing class:
Channel
-
Field Summary
Fields inherited from class dev.unnm3d.redischat.chat.objects.ChannelAudience.ChannelAudienceBuilder
name, permissions, proximityDistance, type
-
Constructor Summary
ConstructorsConstructorDescriptionChannelBuilder
(String name) Constructs a new ChannelBuilder with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
discordWebhook
(String discordWebhook) Sets the Discord webhook URL of the channel.displayName
(String displayName) Sets the display name of the channel.filtered
(boolean filtered) Sets whether the channel is filtered.Sets the format of the channel.notificationSound
(String notificationSound) Sets the notification sound of the channel.permission
(String... permissions) Adds permissions to the channel.permissionEnabled
(boolean permissionEnabled) Sets whether permissions are enabled for the channel.permissions
(List<String> permissions) Sets the permissions for the channel.proximityDistance
(int proximityDistance) Sets the proximity distance of the channel.rateLimit
(int rateLimit) Sets the rate limit of the channel.rateLimitPeriod
(int rateLimitPeriod) Sets the rate limit period of the channel.shownByDefault
(boolean shownByDefault) Sets whether the channel is shown by default.toString()
Methods inherited from class dev.unnm3d.redischat.chat.objects.ChannelAudience.ChannelAudienceBuilder
type
-
Constructor Details
-
ChannelBuilder
Constructs a new ChannelBuilder with the specified name.- Parameters:
name
- The name of the channel.
-
-
Method Details
-
displayName
Sets the display name of the channel.- Parameters:
displayName
- The display name to set.- Returns:
- The current instance of ChannelBuilder.
-
format
Sets the format of the channel.- Parameters:
format
- The format to set.- Returns:
- The current instance of ChannelBuilder.
-
rateLimit
Sets the rate limit of the channel.- Parameters:
rateLimit
- The rate limit to set.- Returns:
- The current instance of ChannelBuilder.
-
rateLimitPeriod
Sets the rate limit period of the channel.- Parameters:
rateLimitPeriod
- The rate limit period to set.- Returns:
- The current instance of ChannelBuilder.
-
discordWebhook
Sets the Discord webhook URL of the channel.- Parameters:
discordWebhook
- The Discord webhook URL to set.- Returns:
- The current instance of ChannelBuilder.
-
filtered
Sets whether the channel is filtered.- Parameters:
filtered
- True if the channel is filtered, false otherwise.- Returns:
- The current instance of ChannelBuilder.
-
shownByDefault
Sets whether the channel is shown by default.- Parameters:
shownByDefault
- True if the channel is shown by default, false otherwise.- Returns:
- The current instance of ChannelBuilder.
-
proximityDistance
Sets the proximity distance of the channel.- Overrides:
proximityDistance
in classChannelAudience.ChannelAudienceBuilder
- Parameters:
proximityDistance
- The proximity distance to set.- Returns:
- The current instance of ChannelBuilder.
-
permissionEnabled
Sets whether permissions are enabled for the channel.- Parameters:
permissionEnabled
- True if permissions are enabled, false otherwise.- Returns:
- The current instance of ChannelBuilder.
-
permission
Adds permissions to the channel.- Overrides:
permission
in classChannelAudience.ChannelAudienceBuilder
- Parameters:
permissions
- Varargs parameter representing the permissions to add.- Returns:
- The current instance of ChannelBuilder.
-
permissions
Sets the permissions for the channel.- Overrides:
permissions
in classChannelAudience.ChannelAudienceBuilder
- Parameters:
permissions
- A list of permissions to set.- Returns:
- The current instance of ChannelBuilder.
-
notificationSound
Sets the notification sound of the channel.- Parameters:
notificationSound
- The notification sound to set.- Returns:
- The current instance of ChannelBuilder.
-
build
- Overrides:
build
in classChannelAudience.ChannelAudienceBuilder
-
toString
- Overrides:
toString
in classChannelAudience.ChannelAudienceBuilder
-