new AuctionManager(managerOptions)
Parameters:
Name | Type | Description |
---|---|---|
managerOptions |
Object | The options of the manager |
Methods
(async) exists(guildId, channelId) → {Promise.<boolean>}
Parameters:
Name | Type | Description |
---|---|---|
guildId |
string | The guild ID of the auction |
channelId |
string | The channel ID of the auction |
Returns:
- Type: Promise.<boolean>
(async) fetch(guildId, channelId) → {Promise.<Auction>}
Parameters:
Name | Type | Description |
---|---|---|
guildId |
string | The guild ID of the auction. |
channelId |
string | The channel ID of the auction. |
Returns:
- Type: Promise.<Auction>
(async) fetchAll() → {Promise.<Array.<Auction>>}
Fetches all auctions
.Fetches all auctions
Returns:
- Type: Promise.<Array.<Auction>>
(async) start(auctionStartOptions) → {Promise.<Auction>}
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
auctionStartOptions |
Object |
Properties
|
Returns:
- The Auction that was started
- Type: Promise.<Auction>