Getting the selected deck in the editor

Hi guys, I have created an addon which takes the user’s current input and creates new cards from it when the user presses a button on the editor. I am adding the button via gui_hooks.editor_did_init_buttons.append() However, I’m not sure how I can get the user’s currently selected deck within the editor when I click the button, and searching on the forum only brings me to getting the user’s selected deck on the home screen, which is what my code is currently using instead.

Sorry if this sounds silly, this is my first time developing an addon.