RevoltClient.Version is now static and reads from the assembly information rather than being hard-coded cherry-picked into #20
ClientConfig.UserAgent is null by default. ConfigSafetyChecks will replace it with the default user agent which accounts for library version and whether or not the user has specified that the library will be controlling a userbot.
ClientConfig.UserAgent, if set, is now used in its entirety with no additions. this enables the user to have full control over their user agent, which makes #18 significantly easier to use and allows users to insert their own bot versions (eg for open source "host it yourself" bots like back in the good old days of IRC).
the websocket now includes the user agent.
this PR will conflict with #18. ideally this one should be merged first, and i'll correct that PR accordingly.
this PR makes 3 changes:
cherry-picked into #20RevoltClient.Version
is now static and reads from the assembly information rather than being hard-codedClientConfig.UserAgent
is null by default.ConfigSafetyChecks
will replace it with the default user agent which accounts for library version and whether or not the user has specified that the library will be controlling a userbot.ClientConfig.UserAgent
, if set, is now used in its entirety with no additions. this enables the user to have full control over their user agent, which makes #18 significantly easier to use and allows users to insert their own bot versions (eg for open source "host it yourself" bots like back in the good old days of IRC).this PR will conflict with #18. ideally this one should be merged first, and i'll correct that PR accordingly.