Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better New() function #1416

Open
fallais opened this issue Jul 31, 2023 · 0 comments
Open

Better New() function #1416

fallais opened this issue Jul 31, 2023 · 0 comments

Comments

@fallais
Copy link

fallais commented Jul 31, 2023

It could be better to set two New() function for convenience : NewWithToken() and NewWithOAuth2(). Don't you think ?

Because discordgo.New("Bot " + token) is not really clean as it manipulate a string that could be handle behind the scenes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant