Package discord4j.core.spec.legacy
Class LegacyGuildTemplateCreateSpec
- java.lang.Object
-
- discord4j.core.spec.legacy.LegacyGuildTemplateCreateSpec
-
- All Implemented Interfaces:
LegacySpec<discord4j.discordjson.json.TemplateCreateRequest>
public class LegacyGuildTemplateCreateSpec extends Object implements LegacySpec<discord4j.discordjson.json.TemplateCreateRequest>
LegacySpec to create a guild template.
-
-
Constructor Summary
Constructors Constructor Description LegacyGuildTemplateCreateSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description discord4j.discordjson.json.TemplateCreateRequest
asRequest()
LegacyGuildTemplateCreateSpec
setDescription(String description)
Sets the description of the template.LegacyGuildTemplateCreateSpec
setName(String name)
Sets the name of the template.
-
-
-
Method Detail
-
setName
public LegacyGuildTemplateCreateSpec setName(String name)
Sets the name of the template.- Parameters:
name
- The name for the template.- Returns:
- This spec.
-
setDescription
public LegacyGuildTemplateCreateSpec setDescription(String description)
Sets the description of the template.- Parameters:
description
- The description for the template.- Returns:
- This spec.
-
asRequest
public discord4j.discordjson.json.TemplateCreateRequest asRequest()
- Specified by:
asRequest
in interfaceLegacySpec<discord4j.discordjson.json.TemplateCreateRequest>
-
-