-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update refs for DiscordLuau/discord-luau@b7f2ec0
- Loading branch information
1 parent
0082d64
commit 29e388d
Showing
53 changed files
with
1,471 additions
and
3,243 deletions.
There are no files selected for viewing
Submodule discord-luau
updated
102 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: AttachmentBuilder | ||
description: DiscordLuau docs for AttachmentBuilder. | ||
--- | ||
[//]: # (This file was automatically compiled through the Generator luau code under this repository) | ||
[//]: # (if you want to edit the documentation of discord-luau, please write changes) | ||
[//]: # (to the discord-luau repository itself, we extract the comments from discord-luau and translate) | ||
[//]: # (them into markdown files that Nextra can interpret!) | ||
|
||
[//]: # (----- DOCUMENT IMPORTS ----- ) | ||
|
||
import LuaDeclaration from '$/components/LuaDeclaration.astro'; | ||
import LuaProperty from '$/components/LuaProperty.astro'; | ||
|
||
[//]: # (----- DOCUMENT DESCRIPTION ----- ) | ||
|
||
AttachmentBuilder allows you to build attachments that you can send files through to the discord API. | ||
|
||
Usage: | ||
```lua | ||
local DiscordLuau = require("../Submodules/DiscordLuau") | ||
|
||
local AttachmentBuilder = DiscordLuau.AttachmentBuilder.new() | ||
:setName("Example.txt") | ||
:setData("My Text Document!") | ||
``` | ||
|
||
[//]: # (----- DOCUMENT PROPERTIES ----- ) | ||
|
||
## Properties | ||
|
||
The AttachmentBuilder instance has no set properties! | ||
|
||
[//]: # (----- DOCUMENT METHODS ----- ) | ||
|
||
## Methods | ||
|
||
### setName | ||
|
||
> <LuaDeclaration name="setName" className="AttachmentBuilder" args={[ { name: "name", type: "string" } ]} returnType="Builders.AttachmentBuilder" isMethod /> | ||
Set the name for this Attachment | ||
### setDescription | ||
|
||
> <LuaDeclaration name="setDescription" className="AttachmentBuilder" args={[ { name: "description", type: "string" } ]} returnType="Builders.AttachmentBuilder" isMethod /> | ||
Set the description for this Attachment | ||
### setData | ||
|
||
> <LuaDeclaration name="setData" className="AttachmentBuilder" args={[ { name: "data", type: "string" } ]} returnType="Builders.AttachmentBuilder" isMethod /> | ||
Set the data for this Attachment | ||
|
||
[//]: # (----- DOCUMENT FUNCTIONS ----- ) | ||
|
||
## Functions | ||
|
||
### new | ||
|
||
> <LuaDeclaration name="new" className="AttachmentBuilder" args={[ { name: "intentList", type: "{ string }" } ]} /> | ||
Creates a new instance of AttachmentBuilder with the specified intents. | ||
|
Oops, something went wrong.