Skip to content

Commit 1e531a7

Browse files
committed
Misc reorder
1 parent 2967ae1 commit 1e531a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,19 @@ public void Dispose() {
140140
}
141141

142142
[PublicAPI]
143-
public async Task<bool> DeclineTradeOffer(ulong tradeID) {
143+
public async Task<bool> CancelTradeOffer(ulong tradeID) {
144144
ArgumentOutOfRangeException.ThrowIfZero(tradeID);
145145

146-
Uri request = new(SteamCommunityURL, $"/tradeoffer/{tradeID}/decline");
146+
Uri request = new(SteamCommunityURL, $"/tradeoffer/{tradeID}/cancel");
147147

148148
return await UrlPostWithSession(request).ConfigureAwait(false);
149149
}
150150

151151
[PublicAPI]
152-
public async Task<bool> CancelTradeOffer(ulong tradeID) {
152+
public async Task<bool> DeclineTradeOffer(ulong tradeID) {
153153
ArgumentOutOfRangeException.ThrowIfZero(tradeID);
154154

155-
Uri request = new(SteamCommunityURL, $"/tradeoffer/{tradeID}/cancel");
155+
Uri request = new(SteamCommunityURL, $"/tradeoffer/{tradeID}/decline");
156156

157157
return await UrlPostWithSession(request).ConfigureAwait(false);
158158
}

0 commit comments

Comments
 (0)