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.
See Also:
  • Constructor Details

    • LegacyGuildTemplateCreateSpec

      public LegacyGuildTemplateCreateSpec()
  • Method Details

    • 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 interface LegacySpec<discord4j.discordjson.json.TemplateCreateRequest>