Skip to content

Commit ada1f55

Browse files
thomasbntValDesign22
authored andcommitted
if (!this._isReady) return console.error(ErrorCodes.INSTANCE_NOT_INITIALIZED)
1 parent 441a75d commit ada1f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/discordjs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default class DiscordAnalytics {
199199
*/
200200
public async trackInteractions(interaction: any, interactionNameResolver?: (interaction: any) => string) {
201201
if (this._debug) console.log("[DISCORDANALYTICS] trackInteractions() triggered")
202-
if (!this._isReady) console.error(ErrorCodes.INSTANCE_NOT_INITIALIZED)
202+
if (!this._isReady) return console.error(ErrorCodes.INSTANCE_NOT_INITIALIZED)
203203

204204
let guilds: { locale: Locale, number: number }[] = []
205205
this._client.guilds.cache.map((current: any) => guilds.find((x) => x.locale === current.preferredLocale) ?

0 commit comments

Comments
 (0)