Skip to content

Commit

Permalink
feat: channelPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
Faf4a committed Feb 25, 2024
1 parent 3fc5e83 commit 31284b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/functions/message/channelPosition.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?.rawPosition;

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

0 comments on commit 31284b9

Please sign in to comment.