You can do the vaginal swab test for gonorrhoea and chlamydia at any point during your menstrual cycle, including during your period and regardless of how heavy your flow is.  Your period will not interfere with the result although it may make it slightly harder to take the sample.   It’s always best to do an STI test as soon as possible after receiving it and especially while you remember!