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