DisBot
Preparing search index...
helper/InteractionHelper
InteractionHelper
Class InteractionHelper
Index
Constructors
constructor
Methods
channel
Requirements
check
Bot
Permissions
check
Guild
Owner
check
User
Permissions
cooldown
Check
role
Requirements
send
Reply
user
Requirements
Constructors
constructor
new
InteractionHelper
()
:
InteractionHelper
Returns
InteractionHelper
Methods
Static
channel
Requirements
channelRequirements
(
interaction
:
Interaction
,
client
:
ExtendedClient
,
channels
:
string
[]
,
)
:
Promise
<
boolean
>
Parameters
interaction
:
Interaction
client
:
ExtendedClient
channels
:
string
[]
Returns
Promise
<
boolean
>
Static
check
Bot
Permissions
checkBotPermissions
(
interaction
:
Interaction
,
client
:
ExtendedClient
,
botPermissions
:
PermissionResolvable
[]
,
)
:
Promise
<
void
>
Parameters
interaction
:
Interaction
client
:
ExtendedClient
botPermissions
:
PermissionResolvable
[]
Returns
Promise
<
void
>
Static
check
Guild
Owner
checkGuildOwner
(
interaction
:
Interaction
,
client
:
ExtendedClient
)
:
Promise
<
void
>
Parameters
interaction
:
Interaction
client
:
ExtendedClient
Returns
Promise
<
void
>
Static
check
User
Permissions
checkUserPermissions
(
interaction
:
Interaction
,
client
:
ExtendedClient
,
userPermissions
:
PermissionResolvable
[]
,
)
:
Promise
<
void
>
Parameters
interaction
:
Interaction
client
:
ExtendedClient
userPermissions
:
PermissionResolvable
[]
Returns
Promise
<
void
>
Static
cooldown
Check
cooldownCheck
(
cooldown
:
number
,
interaction
:
Interaction
,
client
:
ExtendedClient
,
type
:
DisBotInteractionType
,
)
:
Promise
<
void
>
Parameters
cooldown
:
number
interaction
:
Interaction
client
:
ExtendedClient
type
:
DisBotInteractionType
Returns
Promise
<
void
>
Static
role
Requirements
roleRequirements
(
interaction
:
Interaction
,
client
:
ExtendedClient
,
roles
:
string
[]
,
)
:
Promise
<
boolean
>
Parameters
interaction
:
Interaction
client
:
ExtendedClient
roles
:
string
[]
Returns
Promise
<
boolean
>
Static
send
Reply
sendReply
(
interaction
:
Interaction
,
emoji
:
string
,
message
:
string
,
)
:
Promise
<
void
>
Parameters
interaction
:
Interaction
emoji
:
string
message
:
string
Returns
Promise
<
void
>
Static
user
Requirements
userRequirements
(
interaction
:
Interaction
,
client
:
ExtendedClient
,
users
:
string
[]
,
)
:
Promise
<
boolean
>
Parameters
interaction
:
Interaction
client
:
ExtendedClient
users
:
string
[]
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
channel
Requirements
check
Bot
Permissions
check
Guild
Owner
check
User
Permissions
cooldown
Check
role
Requirements
send
Reply
user
Requirements
DisBot
Loading...