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

Context for api requests? #69

Open
Satont opened this issue Oct 12, 2023 · 0 comments
Open

Context for api requests? #69

Satont opened this issue Oct 12, 2023 · 0 comments

Comments

@Satont
Copy link

Satont commented Oct 12, 2023

In go we should take ctx as first argument for requests, it's like convention or something.

Right now for example for getting roles from discord

rolesReq := disgo.GetGuildRoles{GuildID: req.GuildId}
roles, err := rolesReq.Send(c.discord.Client)

I cannot use context.

Can it be added or you have few arguments beside this?

Or does it already available and i missed some docs?

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