hytescript.js
Version:
A package for programming anything you want with ease.
17 lines (16 loc) • 471 B
JavaScript
const { getProperty } = require("../../utils/utils");
module.exports = {
description: 'Returns a property from the author.',
usage: 'property?',
parameters: [
{
name: 'Property',
description: 'The property to get from author.',
optional: 'true',
defaultValue: 'id'
}
],
run: async (d, property = 'id') => {
return getProperty('user', d.author, property)
}
};