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
Fixed ModifyAsync null checks
pull/108/head
RogueException
9 years ago
parent
f46e217baa
commit
4f1623d5e9
4 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Discord.Net/Entities/Channels/GuildChannel.cs
+1
-1
src/Discord.Net/Entities/Channels/TextChannel.cs
+1
-1
src/Discord.Net/Entities/Channels/VoiceChannel.cs
+1
-1
src/Discord.Net/Entities/Users/SelfUser.cs
+ 1
- 1
src/Discord.Net/Entities/Channels/GuildChannel.cs
View File
@@ -51,7 +51,7 @@ namespace Discord
}
public async Task ModifyAsync(Action<ModifyGuildChannelParams> func)
{
if (func
!
= null) throw new NullReferenceException(nameof(func));
if (func
=
= null) throw new NullReferenceException(nameof(func));
var args = new ModifyGuildChannelParams();
func(args);
+ 1
- 1
src/Discord.Net/Entities/Channels/TextChannel.cs
View File
@@ -32,7 +32,7 @@ namespace Discord
public async Task ModifyAsync(Action<ModifyTextChannelParams> func)
{
if (func
!
= null) throw new NullReferenceException(nameof(func));
if (func
=
= null) throw new NullReferenceException(nameof(func));
var args = new ModifyTextChannelParams();
func(args);
+ 1
- 1
src/Discord.Net/Entities/Channels/VoiceChannel.cs
View File
@@ -28,7 +28,7 @@ namespace Discord
public async Task ModifyAsync(Action<ModifyVoiceChannelParams> func)
{
if (func
!
= null) throw new NullReferenceException(nameof(func));
if (func
=
= null) throw new NullReferenceException(nameof(func));
var args = new ModifyVoiceChannelParams();
func(args);
+ 1
- 1
src/Discord.Net/Entities/Users/SelfUser.cs
View File
@@ -33,7 +33,7 @@ namespace Discord
}
public async Task ModifyAsync(Action<ModifyCurrentUserParams> func)
{
if (func
!
= null) throw new NullReferenceException(nameof(func));
if (func
=
= null) throw new NullReferenceException(nameof(func));
var args = new ModifyCurrentUserParams();
func(args);
Write
Preview
Loading…
Cancel
Save