DiscordLua
discorddiscord
v1.2.4
Install

GuildScheduledEventRecurrenceRuleWeekday

Enum
On this page

discord.GuildScheduledEventRecurrenceRuleWeekday lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.GuildScheduledEventRecurrenceRuleWeekday.Monday
0
Monday. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventRecurrenceRuleWeekday.Tuesday
1
Tuesday. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventRecurrenceRuleWeekday.Wednesday
2
Wednesday. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventRecurrenceRuleWeekday.Thursday
3
Thursday. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventRecurrenceRuleWeekday.Friday
4
Friday. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventRecurrenceRuleWeekday.Saturday
5
Saturday. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventRecurrenceRuleWeekday.Sunday
6
Sunday. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.GuildScheduledEventRecurrenceRuleWeekday.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.GuildScheduledEventRecurrenceRuleWeekday.Monday)
Search Ctrl K Navigate Open Esc