withBotToken function
Returns an instance of BotDiscordClient which takes on a token that authorizes the bot for requests.
Implementation
DiscordClient withBotToken(final String token) {
return BotDiscordClient(
token: token,
httpClient: http.Client(),
);
}