Skip to content

Discord Verified is not guaranteed to be present #283

@Nensec

Description

@Nensec

Verified = TryGetValue(user, "verified").ToLowerInvariant() == "true";

This line will throw a nullref in case verified is not present, resulting in context.Identity being null. This ends up with a nondescript acccess_denied error. Simply adding a ? before the ToLowerInvariant fixes things

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions