You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Can be optionally implemented by inherited types to conditionally hide an enum value.
16
+
/// </summary>
17
+
/// <remarks>
18
+
/// Only runs on prior to modal construction. For slash command parameters, this method is ignored.
19
+
/// </remarks>
20
+
/// <param name="interaction">Interaction that <see cref="IDiscordInteractionExtentions.RespondWithModalAsync{T}(IDiscordInteraction, string, T, RequestOptions, Action{ModalBuilder})"/> is called on.</param>
21
+
/// <returns>
22
+
/// <see cref="true"/> if the attribute should be active and hide the value.
thrownewInvalidOperationException($"Enum type {typeof(T).FullName} has too many visible members to be used in a select menu. Maximum visible members is {SelectMenuBuilder.MaxOptionCount}, but {members.Count()} are visible.");
0 commit comments