Skip to content

"DBLClient" is not exported from module "topgg" #81

@matildasmets

Description

@matildasmets

Imported topgg, but I keep getting this error:
"DBLClient" is not exported from module "topgg"Pylance[reportPrivateImportUsage](https://github.com/microsoft/pylance-release/blob/main/docs/diagnostics/reportPrivateImportUsage.md)

While my code has the necessary imports.

import os
import discord
from discord.ext import commands
from colorama import Fore, Style
import topgg

topgg_token = os.getenv('TOPGG_TOKEN')
if not topgg_token:
    raise ValueError("TOPGG_TOKEN environment variable is not set.")

topgg_client = topgg.DBLClient(self.bot, topgg_token)

Why doesn't it work? I don't understand the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions