Fixed log commands part 2
This commit is contained in:
		| @@ -732,7 +732,7 @@ namespace NadekoBot.Modules.Administration | |||||||
|             [OwnerOnly] |             [OwnerOnly] | ||||||
|             public async Task LogServer(PermissionAction action) |             public async Task LogServer(PermissionAction action) | ||||||
|             { |             { | ||||||
|                 var channel = (ITextChannel)msg.Channel; |                 var channel = (ITextChannel)Context.Channel; | ||||||
|                 LogSetting logSetting; |                 LogSetting logSetting; | ||||||
|                 using (var uow = DbHandler.UnitOfWork()) |                 using (var uow = DbHandler.UnitOfWork()) | ||||||
|                 { |                 { | ||||||
| @@ -767,7 +767,7 @@ namespace NadekoBot.Modules.Administration | |||||||
|             [OwnerOnly] |             [OwnerOnly] | ||||||
|             public async Task LogIgnore() |             public async Task LogIgnore() | ||||||
|             { |             { | ||||||
|                 var channel = (ITextChannel)imsg.Channel; |                 var channel = (ITextChannel)Context.Channel; | ||||||
|                 int removed; |                 int removed; | ||||||
|                 using (var uow = DbHandler.UnitOfWork()) |                 using (var uow = DbHandler.UnitOfWork()) | ||||||
|                 { |                 { | ||||||
| @@ -796,7 +796,7 @@ namespace NadekoBot.Modules.Administration | |||||||
|             [OwnerOnly] |             [OwnerOnly] | ||||||
|             public async Task LogEvents() |             public async Task LogEvents() | ||||||
|             { |             { | ||||||
|                 await imsg.Channel.SendConfirmAsync("Log events you can subscribe to:", String.Join(", ", Enum.GetNames(typeof(LogType)).Cast<string>())); |                 await Context.Channel.SendConfirmAsync("Log events you can subscribe to:", String.Join(", ", Enum.GetNames(typeof(LogType)).Cast<string>())); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             [NadekoCommand, Usage, Description, Aliases] |             [NadekoCommand, Usage, Description, Aliases] | ||||||
| @@ -805,7 +805,7 @@ namespace NadekoBot.Modules.Administration | |||||||
|             [OwnerOnly] |             [OwnerOnly] | ||||||
|             public async Task Log(LogType type) |             public async Task Log(LogType type) | ||||||
|             { |             { | ||||||
|                 var channel = (ITextChannel)imsg.Channel; |                 var channel = (ITextChannel)Context.Channel; | ||||||
|                 ulong? channelId = null; |                 ulong? channelId = null; | ||||||
|                 using (var uow = DbHandler.UnitOfWork()) |                 using (var uow = DbHandler.UnitOfWork()) | ||||||
|                 { |                 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user