This is what the function looks like currently.
function PitBull4_Totems.button_scripts:OnClick(mousebutton) if (mousebutton == "RightButton" and self.slot and not self.force_show) then DestroyTotem( self.slot ) end end
I know theres a slash-command in wow that goes /click frame mousebutton which works for destroying totems but I have little to no experience with lua and the wow API and not sure how to use it(if its even possible).
I tried just replacing destroytotem with the click, but it doesn't work.
click "TotemFrameTotem"..self.slot RightButton
If anyone knows a simple way to make this work please let me know