Skip to content

Commit

Permalink
fix: deprecate missing property in ShortUser (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 authored Apr 11, 2023
1 parent cc14fb8 commit c51ae4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@top-gg/sdk",
"version": "3.1.4",
"version": "3.1.5",
"description": "Official Top.gg Node SDK",
"main": "./dist/index.js",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/structs/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,11 @@ export class Api extends EventEmitter {
* [
* {
* username: 'Xignotic',
* discriminator: '0001',
* id: '205680187394752512',
* avatar: '3b9335670c7213b3a2d4e990081900c7'
* },
* {
* username: 'iara',
* discriminator: '0001',
* id: '395526710101278721',
* avatar: '3d1477390b8d7c3cec717ac5c778f5f4'
* }
Expand Down
6 changes: 5 additions & 1 deletion src/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ export interface ShortUser {
id: Snowflake;
/** User's username */
username: string;
/** User's discriminator */
/**
* User's discriminator
*
* @deprecated
*/
discriminator: string;
/** User's avatar hash */
avatar: string;
Expand Down

0 comments on commit c51ae4d

Please sign in to comment.