Skip to content

Commit

Permalink
chore: Fix imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Jul 6, 2024
1 parent 75da8c3 commit 40791cf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion source/constants/parameters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as Discord from "@discordeno/bot";
import type { OptionTemplate } from "logos/commands/commands";

export default Object.freeze({
Expand Down
1 change: 0 additions & 1 deletion source/library/commands/commands.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as Discord from "@discordeno/bot";
import { handleDisplayAcknowledgements } from "logos/commands/handlers/acknowledgements";
import { handleAnswer } from "logos/commands/handlers/answer";
import { handleDisplayCefrGuide } from "logos/commands/handlers/cefr";
Expand Down
6 changes: 2 additions & 4 deletions source/library/stores/journalling.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { getLocaleByLocalisationLanguage } from "logos:constants/languages";
import type * as Discord from "@discordeno/bot";
import type { Client } from "logos/client";
import { Collector } from "logos/collectors";
import { Logger } from "logos/logger";
import loggers from "logos/stores/journalling/loggers";
import { AuditLogEvents, snowflakeToTimestamp } from "@discordeno/bot";

type Events = Logos.Events & Discord.Events;

Expand Down Expand Up @@ -178,7 +176,7 @@ class JournallingStore {
const now = Date.now();

const auditLog = await this.#client.bot.helpers
.getAuditLog(guildId, { actionType: AuditLogEvents.MemberKick })
.getAuditLog(guildId, { actionType: Discord.AuditLogEvents.MemberKick })
.catch((reason) => {
this.log.warn(`Could not get audit log for ${this.#client.diagnostics.guild(guildId)}:`, reason);
return undefined;
Expand All @@ -188,7 +186,7 @@ class JournallingStore {
}

return auditLog.auditLogEntries
.filter((entry) => snowflakeToTimestamp(BigInt(entry.id)) >= now - constants.time.second * 5)
.filter((entry) => Discord.snowflakeToTimestamp(BigInt(entry.id)) >= now - constants.time.second * 5)
.find((entry) => entry.targetId === user.id.toString());
}
}
Expand Down
3 changes: 1 addition & 2 deletions source/library/stores/journalling/loggers.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import type { FeatureLanguage, Locale } from "logos:constants/languages";
import type * as Discord from "@discordeno/bot";
import type { Client } from "logos/client";
import guildBanAdd from "logos/stores/journalling/discord/guild-ban-add";
import guildBanRemove from "logos/stores/journalling/discord/guild-ban-remove";
import guildMemberAdd from "logos/stores/journalling/discord/guild-member-add";
import guildMemberRemove from "logos/stores/journalling/discord/guild-member-remove";
import messageDelete from "logos/stores/journalling/discord/message-delete";
import messageUpdate from "logos/stores/journalling/discord/message-update";
import guildMemberKick from "logos/stores/journalling/logos/guild-member-kick";
import entryRequestAccept from "logos/stores/journalling/logos/entry-request-accept";
import entryRequestReject from "logos/stores/journalling/logos/entry-request-reject";
import entryRequestSubmit from "logos/stores/journalling/logos/entry-request-submit";
import guildMemberKick from "logos/stores/journalling/logos/guild-member-kick";
import inquiryOpen from "logos/stores/journalling/logos/inquiry-open";
import memberTimeoutAdd from "logos/stores/journalling/logos/member-timeout-add";
import memberTimeoutRemove from "logos/stores/journalling/logos/member-timeout-remove";
Expand Down
1 change: 0 additions & 1 deletion source/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { FeatureLanguage, LearningLanguage, Locale, LocalisationLanguage }
import type { Properties } from "logos:constants/properties";
import type { SlowmodeLevel } from "logos:constants/slowmode";
import type { WithRequired } from "logos:core/utilities.ts";
import type * as Discord from "@discordeno/bot";
import type { EntryRequest } from "logos/models/entry-request";
import type { Praise } from "logos/models/praise";
import type { Report } from "logos/models/report";
Expand Down

0 comments on commit 40791cf

Please sign in to comment.