Skip to content

Commit

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

const [ channelID = d.channel?.id ] = data.inside.splits;

const channel = await d.util.getChannel(d, channelID);

data.result = channel?.lastMessageId;

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

0 comments on commit f932cfd

Please sign in to comment.