Skip to content

Commit

Permalink
Obsolete messages on old Upload methods refer to the correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
soxtoby committed Dec 11, 2024
1 parent bb77d42 commit ea29ae6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SlackNet/WebApi/FilesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Task<FileListResponse> List(
/// <param name="threadTs">Provide another message's <see cref="MessageEventBase.Ts"/> value to upload this file as a reply. Never use a reply's <c>Ts</c> value; use its parent instead.</param>
/// <param name="channels">List of channel names or IDs where the file will be shared.</param>
/// <param name="cancellationToken"></param>
[Obsolete("Use the overload that takes an ExternalFile instead.")]
[Obsolete("Use the overload that takes a FileUpload instead.")]
Task<FileResponse> Upload(
string fileContents,
string fileType = null,
Expand All @@ -114,7 +114,7 @@ Task<FileResponse> Upload(
/// <param name="threadTs">Provide another message's <see cref="MessageEventBase.Ts"/> value to upload this file as a reply. Never use a reply's <c>Ts</c> value; use its parent instead.</param>
/// <param name="channels">List of channel names or IDs where the file will be shared.</param>
/// <param name="cancellationToken"></param>
[Obsolete("Use the overload that takes an ExternalFile instead.")]
[Obsolete("Use the overload that takes a FileUpload instead.")]
Task<FileResponse> Upload(
byte[] fileContents,
string fileType = null,
Expand All @@ -138,7 +138,7 @@ Task<FileResponse> Upload(
/// <param name="threadTs">Provide another message's <see cref="MessageEventBase.Ts"/> value to upload this file as a reply. Never use a reply's <c>Ts</c> value; use its parent instead.</param>
/// <param name="channels">List of channel names or IDs where the file will be shared.</param>
/// <param name="cancellationToken"></param>
[Obsolete("Use the overload that takes an ExternalFile instead.")]
[Obsolete("Use the overload that takes a FileUpload instead.")]
Task<FileResponse> Upload(
Stream fileContents,
string fileType = null,
Expand All @@ -164,7 +164,7 @@ Task<FileResponse> Upload(
/// <param name="threadTs">Provide another message's <see cref="MessageEventBase.Ts"/> value to upload this file as a reply. Never use a reply's <c>Ts</c> value; use its parent instead.</param>
/// <param name="channels">List of channel names or IDs where the file will be shared.</param>
/// <param name="cancellationToken"></param>
[Obsolete("Use the overload of Upload that takes an ExternalFile instead.")]
[Obsolete("Use the overload of Upload that takes a FileUpload instead.")]
Task<FileResponse> UploadSnippet(
string snippet,
string fileType = null,
Expand Down

0 comments on commit ea29ae6

Please sign in to comment.