This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
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
Added OutOfBounds exception for DeleteMessages, for when Message Count is less than 2 or greater than 100
pull/96/head
Khionu Terabite
9 years ago
parent
03c0f670f1
commit
aeebe5d596
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/Discord.Net/Models/Channel.cs
+ 2
- 0
src/Discord.Net/Models/Channel.cs
View File
@@ -204,6 +204,8 @@ namespace Discord
public async Task DeleteMessages(ulong[] messageIds)
{
if (messageIds.Count() < 2) throw new ArgumentOutOfRangeException("messageIds", "You must provide at least 2 Messages or Message Ids");
await Client.ClientAPI.Send(new BulkMessageDelete(Id, messageIds));
}
Write
Preview
Loading…
Cancel
Save