mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-25 01:44:12 +00:00
Upgrade to Discord.Net 2.0.1
This commit is contained in:
parent
e4df2b5da2
commit
6355a86ddb
2 changed files with 9 additions and 9 deletions
|
@ -4,8 +4,8 @@
|
|||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>BirthdayBot</RootNamespace>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<Version>0.5.2</Version>
|
||||
<AssemblyVersion>0.5.2.0</AssemblyVersion>
|
||||
<Version>0.5.3</Version>
|
||||
<AssemblyVersion>0.5.3.0</AssemblyVersion>
|
||||
<Authors>Noikoio</Authors>
|
||||
<Company />
|
||||
<Description>Discord bot for birthday reminders.</Description>
|
||||
|
@ -26,9 +26,9 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Discord.Net" Version="1.0.2" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
<PackageReference Include="NodaTime" Version="2.3.0" />
|
||||
<PackageReference Include="Discord.Net" Version="2.0.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
|
||||
<PackageReference Include="NodaTime" Version="2.4.5" />
|
||||
<PackageReference Include="Npgsql" Version="3.2.7" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ Friend Class HelpInfoCommands
|
|||
End Get
|
||||
End Property
|
||||
|
||||
Private Function CreateHelpEmbed() As (EmbedBuilder, EmbedBuilder)
|
||||
Private Function CreateHelpEmbed() As (Embed, Embed)
|
||||
Dim cpfx = $"●`{CommandPrefix}"
|
||||
' Normal section
|
||||
Dim cmdField As New EmbedFieldBuilder With {
|
||||
|
@ -69,7 +69,7 @@ Friend Class HelpInfoCommands
|
|||
helpManager.AddField(cmdField)
|
||||
helpManager.AddField(managerField)
|
||||
|
||||
Return (helpNoManager, helpManager)
|
||||
Return (helpNoManager.Build(), helpManager.Build())
|
||||
End Function
|
||||
|
||||
Private Async Function CmdHelp(param As String(), reqChannel As SocketTextChannel, reqUser As SocketGuildUser) As Task
|
||||
|
@ -99,7 +99,7 @@ Friend Class HelpInfoCommands
|
|||
.Name = "Regarding time zone parameters",
|
||||
.Value = tzhelp
|
||||
})
|
||||
Await reqChannel.SendMessageAsync("", embed:=embed)
|
||||
Await reqChannel.SendMessageAsync("", embed:=embed.Build())
|
||||
End Function
|
||||
|
||||
Private Async Function CmdInfo(param As String(), reqChannel As SocketTextChannel, reqUser As SocketGuildUser) As Task
|
||||
|
@ -115,6 +115,6 @@ Friend Class HelpInfoCommands
|
|||
})
|
||||
' TODO: Add more fun stats.
|
||||
' Ideas: number of servers, number of total people currently having a birthday, uptime
|
||||
Await reqChannel.SendMessageAsync("", embed:=embed)
|
||||
Await reqChannel.SendMessageAsync("", embed:=embed.Build())
|
||||
End Function
|
||||
End Class
|
||||
|
|
Loading…
Reference in a new issue