Discordia icon indicating copy to clipboard operation
Discordia copied to clipboard

chore: Sticker: fix docs and general cleanup

Open Bilal2453 opened this issue 4 months ago • 0 comments

Just a bit of documentation fix.

I noticed this

--[=[@p stickers ArrayIterable An iterable array of all stickers that are sent in this message.]=]
function get.stickers(self)
	if not self._stickers then
		local client = self.client
		self._stickers = ArrayIterable(self._sticker_items, function(sticker)
			if sticker.format_type == 1 then
				local guild = client._sticker_map[sticker.id]
				return guild and guild._stickers:get(sticker.id) or nil
			else
				-- return client:getSticker(sticker.id) ??
			end
		end)
	end
	return self._stickers
end

There should be no reason to only load stickers of type 1, but I will look into it properly later.

Bilal2453 avatar Oct 19 '24 16:10 Bilal2453