This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix limit when getting from cache without message id
pull/1526/head
Paulo
5 years ago
parent
97ef7d0163
commit
4acdba9234
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
src/Discord.Net.WebSocket/Entities/Messages/MessageCache.cs
+ 2
- 2
src/Discord.Net.WebSocket/Entities/Messages/MessageCache.cs
View File
@@ -71,8 +71,8 @@ namespace Discord.WebSocket
if (dir == Direction.Before)
cachedMessageIds = cachedMessageIds.Reverse();
if (dir == Direction.Around)
limit /
=
2;
if (dir == Direction.Around)
//Only happens if fromMessageId is null, should only get "around" and itself (+1)
limit
= limit
/ 2
+ 1
;
return cachedMessageIds
.Select(x =>
Write
Preview
Loading…
Cancel
Save