Package net.dv8tion.jda.api.utils
Class WidgetUtil.Widget.VoiceChannel
- java.lang.Object
-
- net.dv8tion.jda.api.utils.WidgetUtil.Widget.VoiceChannel
-
- All Implemented Interfaces:
ISnowflake
- Enclosing class:
- WidgetUtil.Widget
public static class WidgetUtil.Widget.VoiceChannel extends java.lang.Object implements ISnowflake
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetIdLong()The Snowflake id of this entity.java.util.List<WidgetUtil.Widget.Member>getMembers()Gets a list of all members in the channeljava.lang.StringgetName()Gets the name of the channelintgetPosition()Gets the integer position of the channelWidgetUtil.WidgetgetWidget()Gets the Widget to which this voice channel belongsinthashCode()java.lang.StringtoString()-
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
-
-
-
Method Detail
-
getPosition
public int getPosition()
Gets the integer position of the channel- Returns:
- integer position of the channel
-
getIdLong
public long getIdLong()
Description copied from interface:ISnowflakeThe Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLongin interfaceISnowflake- Returns:
- Long containing the Id.
-
getName
@Nonnull public java.lang.String getName()
Gets the name of the channel- Returns:
- name of the channel
-
getMembers
@Nonnull public java.util.List<WidgetUtil.Widget.Member> getMembers()
Gets a list of all members in the channel- Returns:
- never-null, possibly-empty list of members in the channel
-
getWidget
@Nonnull public WidgetUtil.Widget getWidget()
Gets the Widget to which this voice channel belongs- Returns:
- the Widget object that holds this voice channel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-