Skip to content

Commit

Permalink
feat: avatarURL added on app
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorniaky committed Aug 8, 2023
1 parent 0e1585e commit aa3f4ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/api-types/rest/v2/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export interface ApiApp extends BaseApiApp {
* The IDs of your application's moderators
*/
mods: string[]
/**
* Your app's avatar url
*/
avatarURL: string
/**
* If your app has auto deploy on github enabled
*/
Expand Down
7 changes: 7 additions & 0 deletions packages/discloud.app/src/structures/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export default class App extends BaseApp {
* If your app has auto-restart enabled
*/
declare autoRestart: boolean;
/**
* Your app's avatar url
*/
declare avatarURL: string;
/**
* Your app's exit code on stopping
*/
Expand Down Expand Up @@ -64,6 +68,9 @@ export default class App extends BaseApp {
if ("autoRestart" in data)
this.autoRestart = data.autoRestart;

if ("avatarURL" in data)
this.avatarURL = data.avatarURL;

if ("exitCode" in data)
this.exitCode = data.exitCode;

Expand Down

0 comments on commit aa3f4ae

Please sign in to comment.