Skip to content

Commit

Permalink
fix: snowflakeutil import (#7219)
Browse files Browse the repository at this point in the history
  • Loading branch information
muchnameless committed Jan 9, 2022
1 parent e07c374 commit 962f4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/discord.js/src/structures/GuildScheduledEvent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const { DiscordSnowflake } = require('@sapphire/snowflake');
const Base = require('./Base');
const { Error } = require('../errors');
const {
Expand All @@ -8,7 +9,6 @@ const {
GuildScheduledEventPrivacyLevels,
Endpoints,
} = require('../util/Constants');
const SnowflakeUtil = require('../util/SnowflakeUtil');

/**
* Represents a scheduled event in a {@link Guild}.
Expand Down Expand Up @@ -164,7 +164,7 @@ class GuildScheduledEvent extends Base {
* @readonly
*/
get createdTimestamp() {
return SnowflakeUtil.timestampFrom(this.id);
return DiscordSnowflake.timestampFrom(this.id);
}

/**
Expand Down

0 comments on commit 962f4bf

Please sign in to comment.