Diamond

Results 394 comments of Diamond

> This may negatively affect the performance for users that require it. I think this is a fair tradeoff. It should be reasonable for people to assume that `templ` is...

We could use [x/exp/slog](https://pkg.go.dev/golang.org/x/exp/slog).

How are you getting channel permissions? What's your code?

`CalcOverwrites` will not try to fetch missing permissions from the given channel. You must use `client.Permissions` to fetch that. Ideally, `CalcOverwrites` should not even be used at all.

What does `client.Client.Permissions` return? (Make sure that `client.Client` is specifically of type `*api.Client`.)

Sorry, try `client.Client.Channel` and check its permissions. Also note that these functions don't handle carrying over category permissions.

Hmm, so https://github.com/diamondburned/arikawa/blob/v3.3.3/state/state.go#L310 should probably error out when `Roles == nil` then, which makes sense. (Not the function itself, but this particular branch.)

I think it would be better if we introduce a new non-breaking API that apps can use to implement this when they need to instead of breaking the current API....

There's currently no way to make `Use` only work for certain commands of the same level. Middlewares will always run before the command handler regardless of when they're added. To...