Skip to content

Commit

Permalink
feat: memberPremiumSince
Browse files Browse the repository at this point in the history
  • Loading branch information
Faf4a committed Feb 25, 2024
1 parent 31284b9 commit 8b3e368
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/functions/user/memberPremiumSince.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = async (d) => {
const data = d.util.aoiFunc(d);

const [ memberID = d.member?.id, guildID = d.guild?.id ] = data.inside.splits;

const guild = await d.util.getGuild(d, guildID)

const member = await d.util.getMember(guild, memberID);

data.result = member?.premiumSinceTimestamp || 0;

return {
code: d.util.setCode(data),
}
}

0 comments on commit 8b3e368

Please sign in to comment.