Type Alias ScheduledMessageCreateBody

ScheduledMessageCreateBody: {
    buttons?: ScheduledButtonInput[];
    channelId?: string | null;
    content: string;
    date?: string | null;
    daysOfWeek?: number[];
    embed?: ScheduledEmbedInput | null;
    eventId?: string | null;
    intervalMinutes?: number | null;
    minecraftContent?: string | null;
    offsetMinutes?: number | null;
    recurrence?: ScheduledMessageRecurrence;
    sendToDiscord?: boolean;
    sendToInGame?: boolean;
    time?: string | null;
    timing?: ScheduledMessageTiming | null;
    trigger?: ScheduledMessageTrigger;
    webhookAvatarUrl?: string | null;
    webhookEnabled?: boolean;
    webhookUsername?: string | null;
}

Type declaration

  • Optionalbuttons?: ScheduledButtonInput[]
  • OptionalchannelId?: string | null

    Required while sendToDiscord is on (the default). Omit or null for a Minecraft-only message.

  • content: string
  • Optionaldate?: string | null
  • OptionaldaysOfWeek?: number[]
  • Optionalembed?: ScheduledEmbedInput | null
  • OptionaleventId?: string | null
  • OptionalintervalMinutes?: number | null
  • OptionalminecraftContent?: string | null

    Restricted MiniMessage for Minecraft (forbiddenMiniMessageTag says what is refused). Blank or null = the Discord content converted. Placeholders as in content; a Minecraft-only message has no {channelName}.

  • OptionaloffsetMinutes?: number | null
  • Optionalrecurrence?: ScheduledMessageRecurrence
  • OptionalsendToDiscord?: boolean

    Default true. At least one of sendToDiscord / sendToInGame must be on.

  • OptionalsendToInGame?: boolean

    Default false. Needs the inGame launch flag (403 otherwise); goes to every connected Minecraft server.

  • Optionaltime?: string | null
  • Optionaltiming?: ScheduledMessageTiming | null
  • Optionaltrigger?: ScheduledMessageTrigger
  • OptionalwebhookAvatarUrl?: string | null
  • OptionalwebhookEnabled?: boolean
  • OptionalwebhookUsername?: string | null