Table of Contents

Method Validate

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Validate(DiscordScheduledEventRecurrenceRule)

Validates the recurrence rule.

public static (bool IsValid, string? ErrorMessage) Validate(this DiscordScheduledEventRecurrenceRule rule)

Parameters

rule DiscordScheduledEventRecurrenceRule

The recurrence rule to validate.

Returns

(bool IsValid, string ErrorMessage)

A tuple containing a boolean indicating validity and an optional error message.