Commit graph

27 commits

Author SHA1 Message Date
ozraru
f75d834aa5
feat(User): add DisplayName method (#1609) 2025-04-13 16:55:15 +03:00
Julien
44e4acb7d5
feat(UserFlags): add BotHTTPInteractions and ActiveDeveloper (#1465)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-04 13:38:10 +03:00
LightningDev1
e8b8ad326b
feat(user): add UserPremiumType type (#1467)
* feat(user): Add UserPremiumType type

* chore(UserPremiumType): fix type name in comment

* style: periods

Add periods at the end of the documentation comments.

* chore(UserPremiumType): reword documentation comment

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-04 13:35:56 +03:00
Muhammad Wildan Aldiansyah
e39e715086
feat: support new username system (#1387)
* Add support for new username system in User.String and User.AvatarURL
* Move default avatar index logic from EndpointDefaultUserAvatar into User.DefaultAvatarIndex

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-07-05 02:37:47 +03:00
42Atomys
df7555c758
feat: Add Guild Member Cover & Accent Color support (#1117)
* feat: add field to struct

* feat(user): Add Banner support

* Update user.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* Update user.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* docs(banner): Replace all cover word with banner

* docs(banner): Remove link on image formatting on banner

* Update util.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* feat(structs#Member): removed BannerURL

* fix(user): wording in comment to BannerURL

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2022-03-02 21:29:10 +03:00
Andres Perez
dd5b9c6c05
Add Guild Member avatar (#1077)
* Add guild member avatar

* add avatar field on Member struct

* add endpoints for guild avatars

* add avatarURL util function for *User.AvatarURL and *Member.AvatarURL

* set GuildID on after GuildMember request

* fix Member.Avatar comment

* fix: gofmt

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2022-02-26 00:26:51 +03:00
Branden J Brown
f36553e31f
fix UserFlags constant types (#937)
Only UserFlagDiscordEmployee had type UserFlags. All other constants
defined in the same block were untyped integer constants.

This change makes all UserFlags constants have type UserFlags. The
primary impact is that godoc and pkg.go.dev should render these
constants under the documentation for UserFlags, rather than under
package-level constants.
2021-05-25 22:09:34 -04:00
John Olheiser
df74d8bbe6
README updates (#935)
* go fmt

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Update README

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: Carson Hoffman <c@rsonhoffman.com>
2021-05-20 00:13:20 -04:00
Carson Hoffman
9e4f05730f
Revert "Update user.go (#934)" (#936)
This reverts commit 1998af926e.
2021-05-20 00:03:07 -04:00
Aditya Jha
1998af926e
Update user.go (#934) 2021-05-19 22:49:11 -04:00
Manfred Touron
2fe5745a4e
chore: add missing fields in User struct (#790)
based on https://discord.com/developers/docs/resources/user

Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
2020-10-24 16:24:31 -04:00
zekro
b806975e3b
add user public flags field and public flag consts (#801)
* add user public flags field and public flag consts

* fix user flag constant initialization and vaalue documentation

* fix user flag constants values
2020-08-08 17:42:45 -04:00
Skippy
2cc0417697
Merge pull request #366 from jD91mZM2/1
STOP USING PRINTF PLS
2018-08-22 19:50:27 -05:00
Shawn Toffel
703389b219
#554 Added locale to user struct 2018-05-30 00:04:52 +00:00
Carson Hoffman
964060f34c General documentation improvements 2018-03-14 14:57:40 -04:00
Sebastian Winkler
e7e5f85367 adds default avatar generation to AvatarURL method (#488)
* adds default avatar generation to AvatarURL method

* converts discriminator string to integer in endpoints.go
2018-02-08 20:08:56 -08:00
Bruce Marriner
1c4ea6df04 gofmt :) 2017-11-08 19:36:26 +00:00
Necroforger
d554270136 Allow size parameter to be omitted (#468) 2017-11-08 07:55:51 -08:00
LEGOlord208
1d514dbfd1
More merging... 2017-07-23 08:41:32 +02:00
LEGOlord208
4edc63dabf
Merge branch 'develop' into 1 2017-07-23 08:39:19 +02:00
LEGOlord208
b813c5d0ca
Merge branch 'develop' into 1 2017-07-23 08:27:41 +02:00
Rinzen Necroforger
a71f5e3e61 Support animated avatar URLs (#388)
* Methods to obtain a user's avatar URL

* Created EndpointUserAvatarAnimated and updated AvatarURL

* Fixed the size parameter
2017-05-29 20:03:39 -07:00
LEGOlord208
c40b975354 STOP USING PRINTF PLS 2017-04-28 21:34:30 +02:00
Chris Rhodes
7b62921b4e Pedantic comment updates. 2017-04-28 12:30:00 -07:00
Ammar Bandukwala
e58e61b0ff add Tag method to user (#364)
* add Tag method to user

* change format verb to %s

* use consistent string forming
2017-04-28 12:29:20 -07:00
LEGOlord208
9b9f289415 How about no? (#356)
I don't know why somebody would do something this inefficient, but I think plain concatination is a better approach
2017-04-14 09:07:36 -07:00
Ammar Bandukwala
52ad9e2feb add String() method to User (#350)
* add String() method to User

* put User def in it's own file

* remove usage of t.Run for support w/ older Go versions
2017-04-07 08:19:48 -07:00