Class PrivateChannelCreateEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.channel.priv.PrivateChannelCreateEvent
-
public class PrivateChannelCreateEvent extends Event
Indicates that aPrivate Channel
was created.Can be used to retrieve the created private channel and its
User
.
-
-
Constructor Summary
Constructors Constructor Description PrivateChannelCreateEvent(JDA api, long responseNumber, PrivateChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateChannel
getChannel()
ThePrivateChannel
User
getUser()
-
Methods inherited from class net.dv8tion.jda.core.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
PrivateChannelCreateEvent
public PrivateChannelCreateEvent(JDA api, long responseNumber, PrivateChannel channel)
-
-
Method Detail
-
getUser
public User getUser()
- Returns:
- The User
-
getChannel
public PrivateChannel getChannel()
ThePrivateChannel
- Returns:
- The PrivateChannel
-
-