Skip to content

Commit

Permalink
try modern import
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Apr 19, 2023
1 parent 6003561 commit 4ce0c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion islander/AchievementsModule.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AttachmentBuilder, User } from "discord.js";
const { Rank } = require("../islander/profile");
import Rank from "../islander/profile";

export class AchievementsModule {
async GiveAchievement(
Expand Down
4 changes: 1 addition & 3 deletions islander/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const Util = class Util {
* @property {boolean} [renderEmojis=false] If it should render emojis
*/

class Rank {
export default class Rank {
/**
* Creates Rank card
* @example
Expand Down Expand Up @@ -1009,5 +1009,3 @@ class Rank {
return parseInt(width) || 0;
}
}

module.exports = Rank;

0 comments on commit 4ce0c0e

Please sign in to comment.