Preparing search index...
The search index is not available
Discord.js Utilities
Discord.js Utilities
@thenorthsolution/djs-giveaways
GiveawayManagerOptions
Interface GiveawayManagerOptions<Database>
interface
GiveawayManagerOptions
<
Database
>
{
client
:
Client
<
boolean
>
;
createEmbed
?:
(
(
data
)
=>
Awaitable
<
APIEmbed
|
JSONEncodable
<
APIEmbed
>
>
)
;
database
:
Database
;
dmWinners
?:
boolean
;
joinButtonData
?:
GiveawayManagerButtonOptions
;
maxTimeoutMs
?:
number
;
onBeforeHandleInteraction
?:
(
(
interaction
)
=>
Awaitable
<
boolean
>
)
;
selectWinnerEntries
?:
(
(
entries
,
needed
)
=>
Awaitable
<
RawGiveawayEntry
[]
>
)
;
}
Type Parameters
Database
extends
BaseGiveawayDatabaseAdapter
=
BaseGiveawayDatabaseAdapter
Index
Properties
client
create
Embed?
database
dm
Winners?
join
Button
Data?
max
Timeout
Ms?
on
Before
Handle
Interaction?
select
Winner
Entries?
Properties
client
client
:
Client
<
boolean
>
Optional
create
Embed
create
Embed
?:
(
(
data
)
=>
Awaitable
<
APIEmbed
|
JSONEncodable
<
APIEmbed
>
>
)
Type declaration
(
data
)
:
Awaitable
<
APIEmbed
|
JSONEncodable
<
APIEmbed
>
>
Parameters
data
:
GiveawayManagerCreateGiveawayEmbedOptions
<
BaseGiveawayDatabaseAdapter
>
Returns
Awaitable
<
APIEmbed
|
JSONEncodable
<
APIEmbed
>
>
database
database
:
Database
Optional
dm
Winners
dm
Winners
?:
boolean
Optional
join
Button
Data
join
Button
Data
?:
GiveawayManagerButtonOptions
Optional
max
Timeout
Ms
max
Timeout
Ms
?:
number
Optional
on
Before
Handle
Interaction
on
Before
Handle
Interaction
?:
(
(
interaction
)
=>
Awaitable
<
boolean
>
)
Type declaration
(
interaction
)
:
Awaitable
<
boolean
>
Parameters
interaction
:
ButtonInteraction
<
CacheType
>
Returns
Awaitable
<
boolean
>
Optional
select
Winner
Entries
select
Winner
Entries
?:
(
(
entries
,
needed
)
=>
Awaitable
<
RawGiveawayEntry
[]
>
)
Type declaration
(
entries
,
needed
)
:
Awaitable
<
RawGiveawayEntry
[]
>
Parameters
entries
:
RawGiveawayEntry
[]
needed
:
number
Returns
Awaitable
<
RawGiveawayEntry
[]
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
client
create
Embed
database
dm
Winners
join
Button
Data
max
Timeout
Ms
on
Before
Handle
Interaction
select
Winner
Entries
Discord.js Utilities
Loading...