def METHOD_NAME(self, types=None, event_ids=None, screenshot=False):
    METHOD_NAME = f"/api/0/issues/{self.group.id}/attachments/"
    query = [("types", t) for t in types or ()]
    query.extend([("event_id", id) for id in event_ids or ()])
    if screenshot:
        query.append(("screenshot", 1))
    if query:
        METHOD_NAME += "?" + urlencode(query)
    return METHOD_NAME