| @@ -22,12 +22,6 @@ namespace Discord | |||||
| this.output = output; | this.output = output; | ||||
| output.WriteLine($"RestGuildFixture using guild: {guild.Id}"); | output.WriteLine($"RestGuildFixture using guild: {guild.Id}"); | ||||
| // capture all console output | // capture all console output | ||||
| guildFixture.Client.Log += LogAsync; | |||||
| } | |||||
| private Task LogAsync(LogMessage message) | |||||
| { | |||||
| output.WriteLine(message.ToString()); | |||||
| return Task.CompletedTask; | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -19,7 +19,6 @@ namespace Discord | |||||
| throw new Exception("The DNET_TEST_TOKEN environment variable was not provided."); | throw new Exception("The DNET_TEST_TOKEN environment variable was not provided."); | ||||
| Client = new DiscordRestClient(new DiscordRestConfig() | Client = new DiscordRestClient(new DiscordRestConfig() | ||||
| { | { | ||||
| LogLevel = LogSeverity.Debug, | |||||
| DefaultRetryMode = RetryMode.AlwaysRetry | DefaultRetryMode = RetryMode.AlwaysRetry | ||||
| }); | }); | ||||
| Client.LoginAsync(TokenType.Bot, token).Wait(); | Client.LoginAsync(TokenType.Bot, token).Wait(); | ||||
| @@ -20,12 +20,6 @@ namespace Discord | |||||
| guild = guildFixture.Guild; | guild = guildFixture.Guild; | ||||
| this.output = output; | this.output = output; | ||||
| output.WriteLine($"RestGuildFixture using guild: {guild.Id}"); | output.WriteLine($"RestGuildFixture using guild: {guild.Id}"); | ||||
| guildFixture.Client.Log += LogAsync; | |||||
| } | |||||
| private Task LogAsync(LogMessage message) | |||||
| { | |||||
| output.WriteLine(message.ToString()); | |||||
| return Task.CompletedTask; | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| /// Ensures that the CurrentUser is the owner of the guild. | /// Ensures that the CurrentUser is the owner of the guild. | ||||