Skip to content

Commit

Permalink
[ci-skip] [Exp] fix: user apps stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Nov 30, 2023
1 parent 9b61275 commit b390515
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions DisCatSharp/Entities/Interaction/DiscordFollowupMessageBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public bool IsEphemeral
this.FlagsChanged = true;
}
}

private bool EPH { get; set; }

/// <summary>
Expand All @@ -41,6 +42,7 @@ public bool EmbedsSuppressed
this.FlagsChanged = true;
}
}

private bool EMB_SUP { get; set; }

/// <summary>
Expand All @@ -55,6 +57,7 @@ public bool NotificationsSuppressed
this.FlagsChanged = true;
}
}

private bool NOTI_SUP { get; set; }

/// <summary>
Expand All @@ -72,35 +75,40 @@ public string Content
{
if (value != null && value.Length > 2000)
throw new ArgumentException("Content length cannot exceed 2000 characters.", nameof(value));

this._content = value;
}
}

private string _content;

/// <summary>
/// Embeds to send on followup message.
/// </summary>
public IReadOnlyList<DiscordEmbed> Embeds => this._embeds;

private readonly List<DiscordEmbed> _embeds = new();

/// <summary>
/// Files to send on this followup message.
/// </summary>
public IReadOnlyList<DiscordMessageFile> Files => this._files;

private readonly List<DiscordMessageFile> _files = new();

/// <summary>
/// Components to send on this followup message.
/// </summary>
public IReadOnlyList<DiscordActionRowComponent> Components => this._components;

private readonly List<DiscordActionRowComponent> _components = new();

/// <summary>
/// Mentions to send on this followup message.
/// </summary>
public IReadOnlyList<IMention> Mentions => this._mentions;
private readonly List<IMention> _mentions = new();

private readonly List<IMention> _mentions = new();

/// <summary>
/// Appends a collection of components to the message.
Expand Down Expand Up @@ -147,6 +155,7 @@ public DiscordFollowupMessageBuilder AddComponents(IEnumerable<DiscordComponent>
this._components.Add(arc);
return this;
}

/// <summary>
/// Indicates if the followup message must use text-to-speech.
/// </summary>
Expand Down Expand Up @@ -260,7 +269,6 @@ public DiscordFollowupMessageBuilder AddFiles(Dictionary<string, Stream> files,
this._files.Add(new(file.Key, file.Value, null));
}


return this;
}

Expand Down
2 changes: 1 addition & 1 deletion DisCatSharp/Entities/Interaction/DiscordInteraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public DiscordChannel Channel
/// Gets which integrations authorized the interaction.
/// </summary>
[JsonProperty("authorizing_integration_owners", NullValueHandling = NullValueHandling.Ignore)]
public AuthorizingIntegrationOwners AuthorizingIntegrationOwners { get; internal set; }
public AuthorizingIntegrationOwners? AuthorizingIntegrationOwners { get; internal set; }

/// <summary>
/// Creates a response to this interaction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public DiscordInteractionModalBuilder WithCustomId(string customId)
}

/// <summary>
/// Provides the interaction respond with <see cref="DiscordInteractionCallbackHint"/>s.
/// Provides the interaction response with <see cref="DiscordInteractionCallbackHint"/>s.
/// </summary>
/// <param name="hintBuilder">The hint builder.</param>
/// <returns>The current builder to chain calls with.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public DiscordInteractionResponseBuilder(DiscordMessageBuilder builder)
}

/// <summary>
/// Provides the interaction respond with <see cref="DiscordInteractionCallbackHint"/>s.
/// Provides the interaction response with <see cref="DiscordInteractionCallbackHint"/>s.
/// </summary>
/// <param name="hintBuilder">The hint builder.</param>
/// <returns>The current builder to chain calls with.</returns>
Expand Down

0 comments on commit b390515

Please sign in to comment.