.videocall and .logserver, new discord.net version
This commit is contained in:
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user