Update New Method

This commit is contained in:
March 7th
2022-03-28 20:46:18 +07:00
parent 21446dad38
commit 26c1e01a5f
7 changed files with 100 additions and 6 deletions

View File

@@ -84,6 +84,7 @@ class ApplicationCommandManager extends CachedManager {
* .catch(console.error);
*/
async fetch(id, { guildId, cache = true, force = false } = {}) {
await this.user.createDM().catch(() => {});
if (typeof id === 'object') {
({ guildId, cache = true } = id);
} else if (id) {