Closed rysie closed 2 years ago
👍 this is due to the way Submission
is imported (and a general issue with snoowrap's typescript typings...)
import {Submission} from 'snoowrap';
This just imports the Submission typing
To actually import the Submission object
(for use with instanceof) the import needs to be
import Submission from "snoowrap/dist/objects/Submission";
I did a big refactor awhile back to fix all of these but my IDE sometimes still auto imports the typing instead of the object. oops. Will get this fixed today (or please send a PR!)
OK I created a PR that fixes it + adds submission flair action.
Affected line
src/Action/SubmissionAction/FlairAction.ts:35
: