Modifier and Type | Method and Description |
---|---|
RoleManager |
createRole()
Creates a new
Role in this Guild. |
ChannelManager |
createTextChannel(java.lang.String name)
Creates a new
TextChannel in this Guild. |
ChannelManager |
createVoiceChannel(java.lang.String name)
Creates a new
VoiceChannel in this Guild. |
java.lang.String |
getAfkChannelId()
The Id of the AFK Voice Channel.
|
int |
getAfkTimeout()
The amount of time (in seconds) that must pass with no activity to be considered AFK by this
Guild . |
java.lang.String |
getIconId()
The Discord Id of the
Guild icon image. |
java.lang.String |
getIconUrl()
The URL of the
Guild icon image. |
java.lang.String |
getId()
The Id of the
Guild . |
JDA |
getJDA()
Returns the
JDA instance of this Guild |
java.time.OffsetDateTime |
getJoinDateForUser(User user)
Provides the join-date for a given
User . |
GuildManager |
getManager()
Returns the
GuildManager for this Guild. |
java.lang.String |
getName()
The human readable name of the
Guild . |
java.lang.String |
getOwnerId()
|
Role |
getPublicRole()
|
Region |
getRegion()
|
java.util.List<Role> |
getRoles()
|
java.util.List<Role> |
getRolesForUser(User user)
|
java.util.List<TextChannel> |
getTextChannels()
The
TextChannels available on the Guild . |
java.util.List<User> |
getUsers()
|
java.util.List<VoiceChannel> |
getVoiceChannels()
The
VoiceChannels available on the Guild . |
java.util.List<VoiceStatus> |
getVoiceStatuses()
A list containing the
VoiceStatus of every User
in this Guild .This will never return an empty list because if it were empty, that would imply that there are no Users in this Guild , which is
impossible. |
VoiceStatus |
getVoiceStatusOfUser(User user)
|
boolean |
isAvailable()
Returns whether or not this Guild is available.
|
java.lang.String getId()
Guild
. This is typically 18 characters long.java.lang.String getName()
Guild
. If no name has been set, this returns null.java.lang.String getIconId()
Guild
icon image. If no icon has been set, this returns null.java.lang.String getIconUrl()
Guild
icon image. If no icon has been set, this returns null.java.lang.String getAfkChannelId()
java.lang.String getOwnerId()
User
Id of the owner of this Guild
.Guild
,
and a such this User
is also the original creator.int getAfkTimeout()
Guild
.
Default is 300 seconds (5 minutes)Region getRegion()
java.util.List<TextChannel> getTextChannels()
TextChannels
available on the Guild
.TextChannels
.ChannelManager createTextChannel(java.lang.String name)
TextChannel
in this Guild.
For this to be successful, the logged in account has to have the MANAGE_CHANNEL Permission
name
- the name of the TextChannel to createGuildUnavailableException
- if the guild is temporarily unavailablejava.util.List<VoiceChannel> getVoiceChannels()
VoiceChannels
available on the Guild
.VoiceChannels
.ChannelManager createVoiceChannel(java.lang.String name)
VoiceChannel
in this Guild.
For this to be successful, the logged in account has to have the MANAGE_CHANNEL Permission
name
- the name of the VoiceChannel to createGuildUnavailableException
- if the guild is temporarily unavailableRoleManager createRole()
Role
in this Guild.
For this to be successful, the logged in account has to have the MANAGE_ROLES Permission
GuildUnavailableException
- if the guild is temporarily unavailablejava.time.OffsetDateTime getJoinDateForUser(User user)
User
.user
- The User
that we wish to get the join-date for.GuildManager getManager()
GuildManager
for this Guild.
In the GuildManager, you can modify most of its properties, and leave or delete it.GuildUnavailableException
- if the guild is temporarily unavailableVoiceStatus getVoiceStatusOfUser(User user)
VoiceStatus
of the provide User
on this Guild
. Every User
in this guild
will have a matching VoiceStatus
.User
that is not in this Guild
is provided, this will return null
.user
- The User
whose VoiceStatus
is requested.VoiceStatus
.java.util.List<VoiceStatus> getVoiceStatuses()
VoiceStatus
of every User
in this Guild
.Users
in this Guild
, which is
impossible.VoiceStatuses
on this Guild
.boolean isAvailable()