Karitham/corde

format accept snowflake

Closed this issue · 0 comments

Currently most format's signatures accept strings, however, when formatting a user object for example, we are most likely to be using a snowflake.

I think we should change those signatures.

As an example, there is

s.WriteString(fmt.Sprintf("%d. %s: %s - %s\n", i, k, v.value, format.User(v.user.String())))

Which would benefit from just taking in a Snowflake.

We could also take in any, and check for string, fmt.Stringer or use fmt.Sprint, but I'm not exactly sure how that'd end up looking