-
Notifications
You must be signed in to change notification settings - Fork 599
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
Remove Value from Http #2806
Remove Value from Http #2806
Conversation
aa90cc6
to
276c192
Compare
http.edit_role_position(guild_id, role.id, position, self.audit_log_reason).await?; | ||
guild_id | ||
.edit_role_position_with_reason(http, role.id, position, self.audit_log_reason) | ||
.await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduced a dependency on the model
feature inside code that is normally just gated behind http
plus builder
. Is it possible to fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to make a PR soon that moves builder
inside of model
and gets rid of the builder
feature, since builder
shouldn't be used without model
anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate? I'm thinking of the builder-no-http usecase as a specific counter-example to that idea.
EDIT: It would be feasible to gate the execute
methods behind model
instead of just http
, but the structs themselves I don't think should be gated behind model
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this to the lib-development chat as this is going quite off-topic for this PR.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating instances of `serde_json::Value`s.
This avoids allocating serde_json::Value