Skip to content

AttachmentBuilder

AttachmentBuilder allows you to build attachments that you can send files through to the discord API.

Usage:

local DiscordLuau = require("../Submodules/DiscordLuau")
local AttachmentBuilder = DiscordLuau.AttachmentBuilder.new()
:setName("Example.txt")
:setData("My Text Document!")

Properties

The AttachmentBuilder instance has no set properties!

Methods

setName

AttachmentBuilder : setName (

     name: string
)  -> Builders.AttachmentBuilder

Set the name for this Attachment

setDescription

AttachmentBuilder : setDescription (

     description: string
)  -> Builders.AttachmentBuilder

Set the description for this Attachment

setData

AttachmentBuilder : setData (

     data: string
)  -> Builders.AttachmentBuilder

Set the data for this Attachment

Functions

new

AttachmentBuilder . new (

     intentList: { string }
)  -> ()

Creates a new instance of AttachmentBuilder with the specified intents.