Visitar URL original
Roles property is not populating with new roles · Issue #1679 · DSharpPlus/DSharpPlus · GitHub
Skip to content

Roles property is not populating with new roles #1679

Open

Description

@C6OI

Describe the bug
When you create a new role and try to get this role using the DiscordGuild.GetRole method, the method returns null

To Reproduce
Steps to reproduce the behavior:

  1. Create a new role
  2. Save it's id somewhere
  3. Try to get this role using the GetRole method by id

Expected behavior
The GetRole method will return the role

Screenshots
First step
Second step
Third step
Result

Activity

  1. added this to the v5.0 milestone on Nov 12, 2023
  2. Plerx2493 commented on Nov 12, 2023

    @Plerx2493
    Member

    How much time is between creating the role and requesting it?

  3. C6OI commented on Nov 12, 2023

    @C6OI
    ContributorAuthor

    image
    Approximately 7 seconds

  4. Plerx2493 commented on Nov 12, 2023

    @Plerx2493
    Member

    hm ok, the caching code seems fine.

  5. added theissue type on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    Effort

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions