Skip to content

Commit 4e9c094

Browse files
committed
docs: document missing ArgumentNullException reasons
1 parent 5d372ba commit 4e9c094

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

SuggestionBot/Services/SuggestionService.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,11 @@ public Uri GetSuggestionLink(Suggestion suggestion)
378378
/// <param name="suggestion">The suggestion to update.</param>
379379
/// <param name="message">The new message of the suggestion.</param>
380380
/// <returns><see langword="true" /> if the message was updated; otherwise, <see langword="false" />.</returns>
381-
/// <exception cref="ArgumentNullException"><paramref name="suggestion" /> is <see langword="null" />.</exception>
381+
/// <exception cref="ArgumentNullException">
382+
/// <para><paramref name="suggestion" /> is <see langword="null" />.</para>
383+
/// -or-
384+
/// <para><paramref name="message" /> is <see langword="null" />.</para>
385+
/// </exception>
382386
public bool SetMessage(Suggestion suggestion, DiscordMessage message)
383387
{
384388
if (suggestion is null)
@@ -410,7 +414,11 @@ public bool SetMessage(Suggestion suggestion, DiscordMessage message)
410414
/// <param name="status">The new status of the suggestion.</param>
411415
/// <param name="staffMember">The staff member who updated the status.</param>
412416
/// <returns><see langword="true" /> if the status was updated; otherwise, <see langword="false" />.</returns>
413-
/// <exception cref="ArgumentNullException"><paramref name="suggestion" /> is <see langword="null" />.</exception>
417+
/// <exception cref="ArgumentNullException">
418+
/// <para><paramref name="suggestion" /> is <see langword="null" />.</para>
419+
/// -or-
420+
/// <para><paramref name="staffMember" /> is <see langword="null" />.</para>
421+
/// </exception>
414422
public bool SetStatus(Suggestion suggestion, SuggestionStatus status, DiscordMember staffMember)
415423
{
416424
if (suggestion is null)

0 commit comments

Comments
 (0)