Use the new Csharp 8 features (pattern matching and using assignments) and cleanup some insignificant resparper complaints
This commit is contained in:
parent
21f813d342
commit
3568b61f38
27 changed files with 217 additions and 250 deletions
|
@ -37,7 +37,7 @@ namespace Geekbot.net.Lib.Logger
|
|||
}
|
||||
public static MessageDto ConvertSocketMessage(SocketMessage message, bool isPrivate = false)
|
||||
{
|
||||
SocketGuildChannel channel = isPrivate ? null : (SocketGuildChannel) message.Channel;
|
||||
var channel = isPrivate ? null : (SocketGuildChannel) message.Channel;
|
||||
return new MessageDto
|
||||
{
|
||||
Message = new MessageDto.MessageContent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue