From 3e72e7a82c312530f005692ebe8d2162594289a7 Mon Sep 17 00:00:00 2001 From: Sean Date: Sat, 10 Dec 2022 00:11:07 +0100 Subject: [PATCH] Fixed some private things etc --- docs/interactions.js/1.1.1/Interaction.html | 3 +++ docs/interactions.js/1.1.1/Member.html | 3 +++ docs/interactions.js/1.1.1/User.html | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 docs/interactions.js/1.1.1/Interaction.html create mode 100644 docs/interactions.js/1.1.1/Member.html create mode 100644 docs/interactions.js/1.1.1/User.html diff --git a/docs/interactions.js/1.1.1/Interaction.html b/docs/interactions.js/1.1.1/Interaction.html new file mode 100644 index 0000000..dbd5d42 --- /dev/null +++ b/docs/interactions.js/1.1.1/Interaction.html @@ -0,0 +1,3 @@ +Interaction
On this page

Interaction

Create a formatted Interaction Object

Constructor

new Interaction()

Example
const Interaction = new Interaction(request, client, response);

Members

applicationId :number

ID of the application this interaction is for

Type:
  • number

appPermissions :number

bitwise set of permissions the app or bot has within the channel the interaction was sent from

Type:
  • number

channelId :number

channel that the interaction was sent from

Type:
  • number

client :object

the client that is bound to the interaction

Type:
  • object

commandName :string|null

interaction command name

Type:
  • string | null

customId :string|null

interaction custom id

Type:
  • string | null

data :object

interaction data payload

Type:
  • object

data :Array

the interaction option data

Type:
  • Array

guild :object

the guild data of the interaction

Type:
  • object

id :number

ID of the interaction

Type:
  • number

locale :number

selected language of the invoking user

Type:
  • number

member :object

the member data of the interaction

Type:
  • object

options :InteractionOptions

Return the options of the interaction

Type:
  • InteractionOptions

token :string

continuation token for responding to the interaction

Type:
  • string

type :number

type of interaction

Type:
  • number

user :User

the user data of the interaction

Type:

Methods

deferReply(ephemeral)

Reply with deferred message

Parameters:
NameTypeDefaultDescription
ephemeralbooleanfalse

if the message should be ephemeral

Example
interaction.deferReply(true); // true or false to make it ephemeral

editReply()

Edit the Reply

Parameters:
TypeDescription
Example
const response = await interaction.editReply({ content: "Hello World" });
console.log(response);

getAttachmentOption() → {InteractionOptionsType.structure}

Get the interaction option "Attachment"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getBooleanOption() → {InteractionOptionsType.structure}

Get the interaction option "Boolean"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getChannelOption() → {InteractionOptionsType.structure}

Get the interaction option "Channel"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getIntegerOption() → {InteractionOptionsType.structure}

Get the interaction option "String"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getMentionableOption() → {InteractionOptionsType.structure}

Get the interaction option "Mentionable"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getNumberOption() → {InteractionOptionsType.structure}

Get the interaction option "Number"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getOptions() → {Array}

Get the interaction option "Attachment"

Returns:
Type: 
Array

getRoleOption() → {InteractionOptionsType.structure}

Get the interaction option "Role"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getStringOption() → {InteractionOptionsType.structure}

Get the interaction option "String"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getSubCommand() → {InteractionOptionsType.structure}

Get the interaction option "Sub Command"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getSubCommandGroup() → {InteractionOptionsType.structure}

Get the interaction option "Sub Command Group"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

getUserOption() → {InteractionOptionsType.structure}

Get the interaction option "User"

Properties
NameTypeDescription
nameString

The name of the option

Returns:
Type: 
InteractionOptionsType.structure

isAutoComplete()

Check if the interaction is an auto complete

isCommand()

Check if the interaction is an application command

isComponent()

Check if the interaction is a message component

isModal()

Check if the interaction is a modal submit

reply()

Reply to an Interaction

Parameters:
TypeDescription
Example
interaction.reply({ content: "Hello World" });

update(options)

Update an Interaction

Parameters:
NameTypeDescription
options

The message payload (embeds, components, content, files)

Example
interaction.update({ content: "Hello World" });
\ No newline at end of file diff --git a/docs/interactions.js/1.1.1/Member.html b/docs/interactions.js/1.1.1/Member.html new file mode 100644 index 0000000..120613e --- /dev/null +++ b/docs/interactions.js/1.1.1/Member.html @@ -0,0 +1,3 @@ +Member
On this page

Member

Create a formatted Member Object

Constructor

new Member()

Example
const Member = new Member(MemberData);

Members

avatar :string

the avatar hash of this member

Type:
  • string

(nullable) avatarURL :string

the avatar url of the member

Type:
  • string

communicationDisabledUntil :number

when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out

Type:
  • number

deaf :boolean

whether the user is deafened in voice channels

Type:
  • boolean

flags :number

the flags on a user's account

Type:
  • number

id :number

the id of this member

Type:
  • number

isPending :boolean

whether the user has not yet passed the guild's Membership Screening requirements

Type:
  • boolean

joinedAt :number

when the user joined the guild

Type:
  • number

joinedAtDate :Date

The date of the member's creation

Type:
  • Date

muted :boolean

whether the user is muted in voice channels

Type:
  • boolean

nickname :string

this user's guild nickname

Type:
  • string

pending :string

whether the user has not yet passed the guild's Membership Screening requirements

Type:
  • string

permissions :object

total permissions of the member in the channel, including overwrites, returned when in the interaction object

Type:
  • object

premiumSince :number

when the user started boosting the guild

Type:
  • number

roles :array

array of role object ids

Type:
  • array
\ No newline at end of file diff --git a/docs/interactions.js/1.1.1/User.html b/docs/interactions.js/1.1.1/User.html new file mode 100644 index 0000000..d3ef9f6 --- /dev/null +++ b/docs/interactions.js/1.1.1/User.html @@ -0,0 +1,3 @@ +User
On this page

User

Create a formatted User Object

Constructor

new User()

Example
```js
const User = new User(UserData);
```

Members

avatar :string

the avatar hash of this user

Type:
  • string

avatarDecoration :string

the avatar decoration of this user

Type:
  • string

(nullable) avatarURL :string

the avatar url of the user

Type:
  • string

disc :string

the discriminator of this user

Type:
  • string

id :number

the id of this user

Type:
  • number

publicFlags :number

the public flags of this user

Type:
  • number

tag :string

the tag of this user

Type:
  • string

username :string

the username of this user

Type:
  • string
\ No newline at end of file