public class ChatChannel
extends java.lang.Object
Note: All set methods automatically call the update()
method.
Constructor and Description |
---|
ChatChannel(ChannelBuilder cb)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deprecated.
It is not recommended to use this.
|
java.lang.String |
getFormat()
Get the format of the channel.
|
java.util.List<java.lang.String> |
getJson()
Get the json of the channel
|
java.lang.String |
getName() |
java.lang.String |
getPermission()
Get the permission for the channel.
|
java.lang.String |
getPrefix()
Get the prefix of the channel.
|
boolean |
isAlwaysAppear()
If the channel always appears.
|
void |
setAlwaysAppear(boolean alwaysAppear)
Set if the channel will always appear in chat.
|
void |
setFormat(java.lang.String format)
Set the format of the channel.
|
void |
setJson(java.util.List<java.lang.String> json)
Set the json for the channel.
|
void |
setName(java.lang.String name)
Set the name of the channel.
|
void |
setPermission(java.lang.String permission)
Set the permission for the channel.
|
void |
setPrefix(java.lang.String prefix)
Set the prefix of the channel.
|
public ChatChannel(ChannelBuilder cb)
cb
- The builder that was used to build the channel.public java.lang.String getName()
public void setName(java.lang.String name)
Note: If this channel is the default channel then you will need to change the default channel name manually
name
- The name of the channel.public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix
- The prefix of the channel.public java.lang.String getPermission()
public void setPermission(java.lang.String permission)
permission
- The permission for the channel.public boolean isAlwaysAppear()
public void setAlwaysAppear(boolean alwaysAppear)
alwaysAppear
- If the channel will always appear.public java.util.List<java.lang.String> getJson()
public void setJson(java.util.List<java.lang.String> json)
json
- The json.public void delete()
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format
- The format.