Class PartialGuild
- java.lang.Object
-
- com.rodiconmc.rodicord.objects.guild.PartialGuild
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelcreateChannel(@NotNull java.lang.String name, Channel.Type type, @NotNull Bot bot)Creates a channel in the guild.ChannelcreateChannel(@NotNull java.lang.String name, Channel.Type type, @NotNull java.lang.String parentId, @NotNull Bot bot)Creates a channel in the guild.GuildgetFull(@NotNull Bot bot)Gets the fullGuildobject.java.lang.StringgetIcon()java.lang.StringgetId()java.lang.StringgetName()intgetPermissions()booleanisOwner()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
getIcon
public java.lang.String getIcon()
-
isOwner
public boolean isOwner()
-
getPermissions
public int getPermissions()
-
getFull
public Guild getFull(@NotNull @NotNull Bot bot)
Gets the fullGuildobject. Useful if this is aPartialGuildinstance.- Parameters:
bot- The bot to get the guild from- Returns:
- The full guild.
-
createChannel
public Channel createChannel(@NotNull @NotNull java.lang.String name, @NotNull Channel.Type type, @NotNull @NotNull Bot bot)
Creates a channel in the guild.- Parameters:
name- The name for the new channeltype- The type of the new channelbot- The bot to create the channel as- Returns:
- The new channel
- See Also:
- Discord Create Guild Channel
-
createChannel
public Channel createChannel(@NotNull @NotNull java.lang.String name, @NotNull Channel.Type type, @NotNull @NotNull java.lang.String parentId, @NotNull @NotNull Bot bot)
Creates a channel in the guild.- Parameters:
name- The name for the new channeltype- The type of the new channelparentId- The snowflake Id of the parent channelbot- The bot to create the channel as- Returns:
- The new channel
- See Also:
- Discord Create Guild Channel
-
-