Interface StartThreadWithoutMessageSpecGenerator

All Superinterfaces:
AuditSpec<discord4j.discordjson.json.StartThreadWithoutMessageRequest>, Spec<discord4j.discordjson.json.StartThreadWithoutMessageRequest>

@Immutable public interface StartThreadWithoutMessageSpecGenerator extends AuditSpec<discord4j.discordjson.json.StartThreadWithoutMessageRequest>
A spec to create threads that are not connected to a message.
  • name: 1-100 character channel name
  • autoArchiveDuration: duration in minutes to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080
  • type: the type of thread to create
  • invitable: whether non-moderators can add other non-moderators to a thread; only available when creating a private thread
  • rateLimitPerUser: amount of seconds a user has to wait before sending another message (0-21600)
See Also:
  • Method Details

    • name

      String name()
    • autoArchiveDuration

      discord4j.discordjson.possible.Possible<ThreadChannel.AutoArchiveDuration> autoArchiveDuration()
    • type

    • invitable

      discord4j.discordjson.possible.Possible<Boolean> invitable()
    • rateLimitPerUser

      discord4j.discordjson.possible.Possible<Integer> rateLimitPerUser()
    • asRequest

      default discord4j.discordjson.json.StartThreadWithoutMessageRequest asRequest()
      Specified by:
      asRequest in interface Spec<discord4j.discordjson.json.StartThreadWithoutMessageRequest>