Dynamically get discord.net version in !info
This commit is contained in:
parent
6d708627f1
commit
74793c8ef7
3 changed files with 10 additions and 6 deletions
|
@ -11,6 +11,11 @@ namespace Geekbot.net.Lib
|
|||
return typeof(Program).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
|
||||
}
|
||||
|
||||
public static string LibraryVersion()
|
||||
{
|
||||
return typeof(Discord.WebSocket.DiscordSocketClient).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
|
||||
}
|
||||
|
||||
public const double ApiVersion = 1;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue