chore: updated dsharpplus
This commit is contained in:
parent
ea0fc35073
commit
e44338c1da
4 changed files with 27 additions and 20 deletions
1
.idea/.idea.CSharpBot/.idea/.name
Normal file
1
.idea/.idea.CSharpBot/.idea/.name
Normal file
|
@ -0,0 +1 @@
|
|||
CSharpBot
|
6
.idea/.idea.CSharpBot/.idea/vcs.xml
Normal file
6
.idea/.idea.CSharpBot/.idea/vcs.xml
Normal 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>
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>5</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -35,12 +35,12 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DSharpPlus" Version="4.2.0-nightly-00972" />
|
||||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-00972" />
|
||||
<PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-00972" />
|
||||
<PackageReference Include="DSharpPlus.Lavalink" Version="4.2.0-nightly-00972" />
|
||||
<PackageReference Include="DSharpPlus.Rest" Version="4.2.0-nightly-00972" />
|
||||
<PackageReference Include="DSharpPlus.VoiceNext" Version="4.2.0-nightly-00972" />
|
||||
<PackageReference Include="DSharpPlus" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.Lavalink" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.Rest" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.VoiceNext" Version="4.2.0-nightly-00973" />
|
||||
<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.Binder" Version="6.0.0-preview.7.21377.19" />
|
||||
|
|
|
@ -31,19 +31,19 @@ var discord = new DiscordClient(new DiscordConfiguration
|
|||
TokenType = TokenType.Bot
|
||||
});
|
||||
#else
|
||||
var discord = new DiscordClient(new DiscordConfiguration
|
||||
{
|
||||
AlwaysCacheMembers = true,
|
||||
AutoReconnect = true,
|
||||
GatewayCompressionLevel = GatewayCompressionLevel.Stream,
|
||||
HttpTimeout = TimeSpan.FromSeconds(10),
|
||||
Intents = DiscordIntents.All,
|
||||
LogTimestampFormat = "MMM dd yyyy - hh:mm:ss tt",
|
||||
MinimumLogLevel = LogLevel.Information,
|
||||
ReconnectIndefinitely = false,
|
||||
Token = config.GetValue<string>("token"),
|
||||
TokenType = TokenType.Bot,
|
||||
});
|
||||
var discord = new DiscordClient(new DiscordConfiguration
|
||||
{
|
||||
AlwaysCacheMembers = true,
|
||||
AutoReconnect = true,
|
||||
GatewayCompressionLevel = GatewayCompressionLevel.Stream,
|
||||
HttpTimeout = TimeSpan.FromSeconds(10),
|
||||
Intents = DiscordIntents.All,
|
||||
LogTimestampFormat = "MMM dd yyyy - hh:mm:ss tt",
|
||||
MinimumLogLevel = LogLevel.Information,
|
||||
ReconnectIndefinitely = false,
|
||||
Token = config.GetValue<string>("token"),
|
||||
TokenType = TokenType.Bot,
|
||||
});
|
||||
#endif
|
||||
|
||||
var services = new ServiceCollection()
|
||||
|
|
Reference in a new issue