Made eventargs constructors public

This commit is contained in:
RogueException
2015-11-05 21:44:10 -04:00
parent 62ba1b3877
commit d1112a0a1a
6 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ namespace Discord
public string UserId { get; } public string UserId { get; }
public Server Server { get; } public Server Server { get; }
internal BanEventArgs(string userId, Server server) public BanEventArgs(string userId, Server server)
{ {
UserId = userId; UserId = userId;
Server = server; Server = server;

View File

@@ -41,7 +41,7 @@ namespace Discord
public Channel Channel { get; } public Channel Channel { get; }
public Server Server => Channel.Server; public Server Server => Channel.Server;
internal ChannelEventArgs(Channel channel) { Channel = channel; } public ChannelEventArgs(Channel channel) { Channel = channel; }
} }
public partial class DiscordClient public partial class DiscordClient

View File

@@ -38,7 +38,7 @@ namespace Discord
public Channel Channel => Message.Channel; public Channel Channel => Message.Channel;
public Server Server => Message.Server; public Server Server => Message.Server;
internal MessageEventArgs(Message msg) { Message = msg; } public MessageEventArgs(Message msg) { Message = msg; }
} }
public partial class DiscordClient public partial class DiscordClient

View File

@@ -20,7 +20,7 @@ namespace Discord
public Role Role { get; } public Role Role { get; }
public Server Server => Role.Server; public Server Server => Role.Server;
internal RoleEventArgs(Role role) { Role = role; } public RoleEventArgs(Role role) { Role = role; }
} }
public partial class DiscordClient public partial class DiscordClient

View File

@@ -20,7 +20,7 @@ namespace Discord
public Server Server { get; } public Server Server { get; }
public string ServerId => Server.Id; public string ServerId => Server.Id;
internal ServerEventArgs(Server server) { Server = server; } public ServerEventArgs(Server server) { Server = server; }
} }
public partial class DiscordClient public partial class DiscordClient

View File

@@ -33,14 +33,14 @@ namespace Discord
public User User { get; } public User User { get; }
public Server Server => User.Server; public Server Server => User.Server;
internal UserEventArgs(User user) { User = user; } public UserEventArgs(User user) { User = user; }
} }
public class UserChannelEventArgs : UserEventArgs public class UserChannelEventArgs : UserEventArgs
{ {
public Channel Channel { get; } public Channel Channel { get; }
public string ChannelId => Channel.Id; public string ChannelId => Channel.Id;
internal UserChannelEventArgs(User user, Channel channel) public UserChannelEventArgs(User user, Channel channel)
: base(user) : base(user)
{ {
Channel = channel; Channel = channel;
@@ -50,7 +50,7 @@ namespace Discord
{ {
public bool IsSpeaking { get; } public bool IsSpeaking { get; }
internal UserIsSpeakingEventArgs(User user, Channel channel, bool isSpeaking) public UserIsSpeakingEventArgs(User user, Channel channel, bool isSpeaking)
: base(user, channel) : base(user, channel)
{ {
IsSpeaking = isSpeaking; IsSpeaking = isSpeaking;