Skip to content

Commit

Permalink
Develop (#135)
Browse files Browse the repository at this point in the history
* Allow symfony 5 (#106)

* Added premium_since to GuildMember model (#116)

Note that I was unable to utilise the
downloadServiceDefinition binary, as it is dependent
upon a web resource that no longer appears to exist
(https://discord-service-definition.herokuapp.com/)

Accordingly, GuildMember.php had to be edited manually,
along with the service definition file.

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
Co-authored-by: HilbertGilbertson <hilbertgilbertson@ctos.online>
  • Loading branch information
3 people committed Oct 29, 2020
1 parent 206e1cb commit ace3cd8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Model/Guild/GuildMember.php
Expand Up @@ -27,10 +27,17 @@ class GuildMember {

/**
* when the user joined the guild
*
* @var \DateTimeImmutable
*/
public $joined_at;

/**
* when the user started boosting the guild
*
* @var \DateTimeImmutable
* @var \DateTimeImmutable|null
*/
public $joined_at;
public $premium_since;

/**
* whether the user is muted in voice channels
Expand Down
5 changes: 5 additions & 0 deletions src/Resources/service_description-v6.json
Expand Up @@ -3210,6 +3210,11 @@
"type": "ISO8601 timestamp",
"description": "when the user joined the guild"
},
"premium_since?": {
"location": "json",
"type": "ISO8601 timestamp",
"description": "when the user started boosting the guild"
},
"deaf": {
"location": "json",
"type": "boolean",
Expand Down

0 comments on commit ace3cd8

Please sign in to comment.