refactor: only cache commands from own user (#6161)

This commit is contained in:
Tiemen
2021-07-23 21:19:17 +02:00
committed by GitHub
parent 4f8ca2936a
commit 4886ae23ab
6 changed files with 26 additions and 36 deletions

View File

@@ -19,6 +19,12 @@ class ApplicationCommand extends Base {
*/
this.id = data.id;
/**
* The parent application's id
* @type {Snowflake}
*/
this.applicationId = data.application_id;
/**
* The guild this command is part of
* @type {?Guild}