We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54cf00c commit 755c77aCopy full SHA for 755c77a
DisCatSharp/Entities/Components/DiscordComponent.cs
@@ -1,3 +1,4 @@
1
+using System;
2
using System.Collections.Generic;
3
4
using DisCatSharp.Enums;
@@ -28,7 +29,7 @@ internal DiscordComponent()
28
29
/// The custom Id of this component, if applicable. Not applicable on ActionRow(s) and link buttons.
30
/// </summary>
31
[JsonProperty("custom_id", NullValueHandling = NullValueHandling.Ignore)]
- public string? CustomId { get; internal set; }
32
+ public string? CustomId { get; internal set; } = Guid.NewGuid().ToString();
33
34
/// <summary>
35
/// Gets the Id of the compenent. Auto populated by discord if not provided.
0 commit comments