CreateButton does not have the right return defined

Bug Info

local plugin = plugin :: Plugin plugin:CreateToolbar():CreateButton()

CreateButton() promises to return an Instance, eventhough it returns a PluginToolbarButton | Documentation - Roblox Creator Hub

because of this you don’t get the other methods from the intellisense without type annotation

Expected Result

That the type annotation returns a PluginToolbarButton

Actual Result

Type Annotation has Instance written.

We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!

Thanks for flagging!

2 Likes

The return type has been fixed.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.