38 lines
955 B
JavaScript
38 lines
955 B
JavaScript
const Discord = require('discord.js');
|
|
|
|
module.exports = [
|
|
{
|
|
name: 'mynumber',
|
|
description: 'Get your associated DID, if you have one.',
|
|
},
|
|
{
|
|
name: 'searchnumbers',
|
|
description: 'Search for DIDs, and purchase one if you have an active server boost.',
|
|
options: [
|
|
{
|
|
name: 'area_code',
|
|
description: 'The area code to search for (e.g. 610).',
|
|
type: Discord.ApplicationCommandOptionType.Number,
|
|
required: true
|
|
},
|
|
{
|
|
name: 'office_code',
|
|
description: 'The office code to search for (e.g. 548).',
|
|
type: Discord.ApplicationCommandOptionType.Number,
|
|
required: false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'getnumber',
|
|
description: 'Purchase a DID from the latest search results of /searchnumbers.',
|
|
options: [
|
|
{
|
|
name: 'choice',
|
|
description: 'The choice of DID to purchase from the latest search results.',
|
|
type: Discord.ApplicationCommandOptionType.Number,
|
|
required: true
|
|
}
|
|
]
|
|
}
|
|
] |