Archived
0
0
Fork 0

chore: updated dsharpplus

This commit is contained in:
Daryl Ronningen 2021-09-02 17:29:50 -07:00
parent ea0fc35073
commit e44338c1da
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 27 additions and 20 deletions

View file

@ -0,0 +1 @@
CSharpBot

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View file

@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>5</WarningLevel> <WarningLevel>5</WarningLevel>
</PropertyGroup> </PropertyGroup>
@ -35,12 +35,12 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="DSharpPlus" Version="4.2.0-nightly-00972" /> <PackageReference Include="DSharpPlus" Version="4.2.0-nightly-00973" />
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-00972" /> <PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-00973" />
<PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-00972" /> <PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-00973" />
<PackageReference Include="DSharpPlus.Lavalink" Version="4.2.0-nightly-00972" /> <PackageReference Include="DSharpPlus.Lavalink" Version="4.2.0-nightly-00973" />
<PackageReference Include="DSharpPlus.Rest" Version="4.2.0-nightly-00972" /> <PackageReference Include="DSharpPlus.Rest" Version="4.2.0-nightly-00973" />
<PackageReference Include="DSharpPlus.VoiceNext" Version="4.2.0-nightly-00972" /> <PackageReference Include="DSharpPlus.VoiceNext" Version="4.2.0-nightly-00973" />
<PackageReference Include="IDoEverything.DSharpPlus.SlashCommands" Version="2.0.1" /> <PackageReference Include="IDoEverything.DSharpPlus.SlashCommands" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0-preview.7.21377.19" /> <PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0-preview.7.21377.19" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0-preview.7.21377.19" /> <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0-preview.7.21377.19" />

View file

@ -31,19 +31,19 @@ var discord = new DiscordClient(new DiscordConfiguration
TokenType = TokenType.Bot TokenType = TokenType.Bot
}); });
#else #else
var discord = new DiscordClient(new DiscordConfiguration var discord = new DiscordClient(new DiscordConfiguration
{ {
AlwaysCacheMembers = true, AlwaysCacheMembers = true,
AutoReconnect = true, AutoReconnect = true,
GatewayCompressionLevel = GatewayCompressionLevel.Stream, GatewayCompressionLevel = GatewayCompressionLevel.Stream,
HttpTimeout = TimeSpan.FromSeconds(10), HttpTimeout = TimeSpan.FromSeconds(10),
Intents = DiscordIntents.All, Intents = DiscordIntents.All,
LogTimestampFormat = "MMM dd yyyy - hh:mm:ss tt", LogTimestampFormat = "MMM dd yyyy - hh:mm:ss tt",
MinimumLogLevel = LogLevel.Information, MinimumLogLevel = LogLevel.Information,
ReconnectIndefinitely = false, ReconnectIndefinitely = false,
Token = config.GetValue<string>("token"), Token = config.GetValue<string>("token"),
TokenType = TokenType.Bot, TokenType = TokenType.Bot,
}); });
#endif #endif
var services = new ServiceCollection() var services = new ServiceCollection()