Package discord4j.core.spec
Class GuildCreateFromTemplateSpec
- java.lang.Object
-
- discord4j.core.spec.GuildCreateFromTemplateSpec
-
-
Constructor Summary
Constructors Constructor Description GuildCreateFromTemplateSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description discord4j.discordjson.json.TemplateCreateGuildRequest
asRequest()
GuildCreateFromTemplateSpec
setIcon(Image icon)
Sets the icon for the created guild.GuildCreateFromTemplateSpec
setName(String name)
Sets the name for the created guild.
-
-
-
Method Detail
-
setName
public GuildCreateFromTemplateSpec setName(String name)
Sets the name for the created guild.- Parameters:
name
- The name of the guild.- Returns:
- This spec.
-
setIcon
public GuildCreateFromTemplateSpec setIcon(Image icon)
Sets the icon for the created guild.- Parameters:
icon
- The icon of the guild.- Returns:
- This spec.
-
-