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