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 -
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.TemplateCreateRequest
setDescription
(String description) Sets the description of the template.Sets the name of the template.
-
Constructor Details
-
LegacyGuildTemplateCreateSpec
public LegacyGuildTemplateCreateSpec()
-
-
Method Details
-
setName
Sets the name of the template.- Parameters:
name
- The name for the template.- Returns:
- This spec.
-
setDescription
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>
-