.videocall and .logserver, new discord.net version

This commit is contained in:
Master Kwoth
2016-02-17 22:37:28 +01:00
parent 00e48be7fe
commit e2d6d8aebf
13 changed files with 129 additions and 22 deletions

View File

@ -265,7 +265,7 @@ namespace NadekoBot.Classes.Music {
Console.WriteLine("Nothing was buffered, try another song and check your GoogleApikey.");
}
int blockSize = 1920 * NadekoBot.client.Services.Get<AudioService>().Config.Channels;
int blockSize = 1920 * NadekoBot.client.GetService<AudioService>().Config.Channels;
byte[] voiceBuffer = new byte[blockSize];
if (parent.OnStarted != null)

View File

@ -28,7 +28,7 @@ namespace NadekoBot
static NadekoStats() { }
private NadekoStats() {
_service = NadekoBot.client.Services.Get<CommandService>();
_service = NadekoBot.client.GetService<CommandService>();
_client = NadekoBot.client;
_statsSW = new Stopwatch();

View File

@ -40,7 +40,7 @@ namespace NadekoBot.Classes {
if (string.IsNullOrWhiteSpace(mod))
throw new ArgumentNullException(nameof(mod));
foreach (var m in NadekoBot.client.Modules().Modules) {
foreach (var m in NadekoBot.client.GetService<ModuleService>().Modules) {
if (m.Name.ToLower().Equals(mod.ToLower()))
return m.Name;
}
@ -51,7 +51,7 @@ namespace NadekoBot.Classes {
if (string.IsNullOrWhiteSpace(commandText))
throw new ArgumentNullException(nameof(commandText));
foreach (var com in NadekoBot.client.Services.Get<CommandService>().AllCommands) {
foreach (var com in NadekoBot.client.GetService<CommandService>().AllCommands) {
if (com.Text.ToLower().Equals(commandText.ToLower()))
return com.Text;
}