Class GuildTemplateCreateSpec

    • Constructor Detail

      • GuildTemplateCreateSpec

        public GuildTemplateCreateSpec()
    • Method Detail

      • setName

        public GuildTemplateCreateSpec setName​(String name)
        Sets the name of the template.
        Parameters:
        name - The name for the template.
        Returns:
        This spec.
      • setDescription

        public GuildTemplateCreateSpec 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 Spec<discord4j.discordjson.json.TemplateCreateRequest>