Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
This report summarizes scanner evidence for Pycord-Development/pycord, a Python project with 2,959 GitHub stars. SynthScan examined 101,069 lines of code across 275 source files, recording 1206 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 24.1 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 436 finding(s).
Are imports declared and package/API names verified? 363 finding(s).
Are wrappers, guards, and repeated structures necessary? 713 finding(s).
Which changes need focused human review? 1206 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1206 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | discord/user.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/mixins.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/sticker.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/gateway.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/enums.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/widget.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/asset.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/_version.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/object.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/emoji.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/oggparse.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/appinfo.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/flags.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/client.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/invite.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/channel.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/member.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/activity.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/partial_emoji.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/message.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/role.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/monetization.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/welcome_screen.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/team.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/backoff.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/shard.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/file.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/threads.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/context_managers.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/bot.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/utils.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/player.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/http.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/opus.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/iterators.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/template.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/permissions.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/mentions.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/errors.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/interactions.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/embeds.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/components.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/stage_instance.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/cog.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/audit_logs.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/colour.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/integrations.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/__main__.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/guild.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/state.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/raw_models.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/reaction.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/abc.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/webhook/sync.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/webhook/async_.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/ui/button.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/ui/view.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/ui/select.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/ui/item.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| HIGH | discord/types/user.py | 0 | the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grant | STRING |
| 137 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | discord/user.py | 606 | except Exception: | CODE |
| HIGH | discord/sticker.py | 510 | except TypeError: | CODE |
| HIGH | discord/client.py | 467 | except asyncio.CancelledError: | CODE |
| HIGH | discord/client.py | 526 | except AttributeError: | CODE |
| HIGH | discord/client.py | 858 | except (NotImplementedError, RuntimeError): | CODE |
| HIGH | discord/client.py | 795 | except Exception: | CODE |
| HIGH | discord/client.py | 1429 | except ValueError: | CODE |
| HIGH | discord/client.py | 472 | except asyncio.CancelledError: | CODE |
| HIGH | discord/member.py | 456 | except KeyError: | CODE |
| HIGH | discord/member.py | 461 | except KeyError: | CODE |
| HIGH | discord/member.py | 1294 | except ValueError: | CODE |
| HIGH | discord/message.py | 1234 | except KeyError: | CODE |
| HIGH | discord/message.py | 1151 | except KeyError: | CODE |
| HIGH | discord/shard.py | 495 | except Exception: | CODE |
| HIGH | discord/threads.py | 252 | except KeyError: | CODE |
| HIGH | discord/threads.py | 263 | except KeyError: | CODE |
| HIGH | discord/context_managers.py | 45 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | discord/bot.py | 1472 | except ValueError: | CODE |
| HIGH | discord/utils.py | 252 | except HTTPException: | CODE |
| HIGH | discord/utils.py | 1342 | except ValueError: | CODE |
| HIGH | discord/player.py | 941 | except Exception: | CODE |
| HIGH | discord/http.py | 114 | except KeyError: | CODE |
| HIGH | discord/http.py | 266 | except KeyError: | CODE |
| HIGH | discord/opus.py | 274 | except KeyError: | CODE |
| HIGH | discord/interactions.py | 289 | except KeyError: | CODE |
| HIGH | discord/interactions.py | 303 | except KeyError: | CODE |
| HIGH | discord/embeds.py | 436 | except KeyError: | CODE |
| HIGH | discord/embeds.py | 441 | except KeyError: | CODE |
| HIGH | discord/embeds.py | 487 | except (AttributeError, KeyError): | CODE |
| HIGH | discord/embeds.py | 494 | except AttributeError: | CODE |
| HIGH | discord/embeds.py | 611 | except AttributeError: | CODE |
| HIGH | discord/embeds.py | 685 | except AttributeError: | CODE |
| HIGH | discord/embeds.py | 759 | except AttributeError: | CODE |
| HIGH | discord/embeds.py | 864 | except AttributeError: | CODE |
| HIGH | discord/embeds.py | 981 | except IndexError: | CODE |
| HIGH | discord/embeds.py | 1046 | except KeyError: | CODE |
| HIGH | discord/embeds.py | 1054 | except KeyError: | CODE |
| HIGH | discord/embeds.py | 666 | except AttributeError: | CODE |
| HIGH | discord/embeds.py | 740 | except AttributeError: | CODE |
| HIGH | discord/cog.py | 785 | except AttributeError: | CODE |
| HIGH | discord/cog.py | 638 | except Exception: | CODE |
| HIGH | discord/cog.py | 790 | except Exception: | CODE |
| HIGH | discord/audit_logs.py | 698 | except AttributeError: | CODE |
| HIGH | discord/guild.py | 797 | except KeyError: | CODE |
| HIGH | discord/guild.py | 3090 | except TypeError: | CODE |
| HIGH | discord/state.py | 329 | except KeyError: | CODE |
| HIGH | discord/state.py | 337 | except KeyError: | CODE |
| HIGH | discord/state.py | 680 | except asyncio.CancelledError: | CODE |
| HIGH | discord/state.py | 1482 | except AttributeError: | CODE |
| HIGH | discord/state.py | 2258 | except AttributeError: | CODE |
| HIGH | discord/state.py | 677 | except AttributeError: | CODE |
| HIGH | discord/state.py | 701 | except KeyError: | CODE |
| HIGH | discord/state.py | 888 | except (AttributeError, ValueError): # eventual consistency lol | CODE |
| HIGH | discord/state.py | 906 | except (AttributeError, ValueError): # eventual consistency lol | CODE |
| HIGH | discord/state.py | 1567 | except KeyError: | CODE |
| HIGH | discord/state.py | 1887 | except KeyError: | CODE |
| HIGH | discord/state.py | 2279 | except KeyError: | CODE |
| HIGH | discord/abc.py | 421 | except KeyError: | CODE |
| HIGH | discord/abc.py | 428 | except KeyError: | CODE |
| HIGH | discord/abc.py | 433 | except KeyError: | CODE |
| 48 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/user.py | 26 | CODE | |
| LOW | discord/sticker.py | 26 | CODE | |
| LOW | discord/gateway.py | 26 | CODE | |
| LOW | discord/enums.py | 26 | CODE | |
| LOW | discord/widget.py | 26 | CODE | |
| LOW | discord/asset.py | 26 | CODE | |
| LOW | discord/_version.py | 26 | CODE | |
| LOW | discord/object.py | 26 | CODE | |
| LOW | discord/emoji.py | 26 | CODE | |
| LOW | discord/oggparse.py | 26 | CODE | |
| LOW | discord/onboarding.py | 25 | CODE | |
| LOW | discord/appinfo.py | 26 | CODE | |
| LOW | discord/flags.py | 26 | CODE | |
| LOW | discord/client.py | 26 | CODE | |
| LOW | discord/client.py | 52 | CODE | |
| LOW | discord/client.py | 54 | CODE | |
| LOW | discord/invite.py | 26 | CODE | |
| LOW | discord/channel.py | 26 | CODE | |
| LOW | discord/member.py | 26 | CODE | |
| LOW | discord/activity.py | 26 | CODE | |
| LOW | discord/partial_emoji.py | 26 | CODE | |
| LOW | discord/__init__.py | 23 | CODE | |
| LOW | discord/__init__.py | 28 | CODE | |
| LOW | discord/__init__.py | 28 | CODE | |
| LOW | discord/__init__.py | 28 | CODE | |
| LOW | discord/__init__.py | 28 | CODE | |
| LOW | discord/__init__.py | 28 | CODE | |
| LOW | discord/__init__.py | 29 | CODE | |
| LOW | discord/__init__.py | 30 | CODE | |
| LOW | discord/__init__.py | 31 | CODE | |
| LOW | discord/__init__.py | 32 | CODE | |
| LOW | discord/__init__.py | 33 | CODE | |
| LOW | discord/__init__.py | 34 | CODE | |
| LOW | discord/__init__.py | 35 | CODE | |
| LOW | discord/__init__.py | 36 | CODE | |
| LOW | discord/__init__.py | 37 | CODE | |
| LOW | discord/__init__.py | 38 | CODE | |
| LOW | discord/__init__.py | 39 | CODE | |
| LOW | discord/__init__.py | 40 | CODE | |
| LOW | discord/__init__.py | 41 | CODE | |
| LOW | discord/__init__.py | 42 | CODE | |
| LOW | discord/__init__.py | 43 | CODE | |
| LOW | discord/__init__.py | 44 | CODE | |
| LOW | discord/__init__.py | 45 | CODE | |
| LOW | discord/__init__.py | 46 | CODE | |
| LOW | discord/__init__.py | 47 | CODE | |
| LOW | discord/__init__.py | 48 | CODE | |
| LOW | discord/__init__.py | 49 | CODE | |
| LOW | discord/__init__.py | 50 | CODE | |
| LOW | discord/__init__.py | 51 | CODE | |
| LOW | discord/__init__.py | 52 | CODE | |
| LOW | discord/__init__.py | 53 | CODE | |
| LOW | discord/__init__.py | 54 | CODE | |
| LOW | discord/__init__.py | 55 | CODE | |
| LOW | discord/__init__.py | 56 | CODE | |
| LOW | discord/__init__.py | 57 | CODE | |
| LOW | discord/__init__.py | 58 | CODE | |
| LOW | discord/__init__.py | 59 | CODE | |
| LOW | discord/__init__.py | 60 | CODE | |
| LOW | discord/__init__.py | 61 | CODE | |
| 293 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/gateway.py | 770 | async def request_soundboard_sounds(self, guild_ids): | CODE |
| LOW | discord/asset.py | 207 | def _from_user_primary_guild_tag( | CODE |
| LOW | discord/asset.py | 336 | def _from_scheduled_event_image( | CODE |
| LOW | discord/flags.py | 270 | def guild_reminder_notifications(self): | CODE |
| LOW | discord/flags.py | 278 | def join_notification_replies(self): | CODE |
| LOW | discord/flags.py | 390 | def failed_to_mention_some_roles_in_thread(self): | CODE |
| LOW | discord/flags.py | 552 | def early_verified_bot_developer(self): | CODE |
| LOW | discord/flags.py | 560 | def discord_certified_moderator(self): | CODE |
| LOW | discord/flags.py | 1178 | def auto_moderation_configuration(self): | CODE |
| LOW | discord/flags.py | 1190 | def auto_moderation_execution(self): | CODE |
| LOW | discord/flags.py | 1471 | def application_auto_moderation_rule_create_badge(self): | CODE |
| LOW | discord/flags.py | 1505 | def gateway_guild_members_limited(self): | CODE |
| LOW | discord/flags.py | 1512 | def verification_pending_guild_limit(self): | CODE |
| LOW | discord/flags.py | 1529 | def gateway_message_content_limited(self): | CODE |
| LOW | discord/flags.py | 1614 | def hide_media_download_options(self): | CODE |
| LOW | discord/client.py | 617 | async def _call_before_identify_hook( | CODE |
| LOW | discord/client.py | 2002 | async def fetch_premium_sticker_packs(self) -> list[StickerPack]: | CODE |
| LOW | discord/client.py | 2098 | async def fetch_role_connection_metadata_records( | CODE |
| LOW | discord/client.py | 2117 | async def update_role_connection_metadata_records( | CODE |
| LOW | discord/invite.py | 755 | async def fetch_target_users_job_status(self) -> InviteTargetUsersJobStatus: | CODE |
| LOW | discord/channel.py | 1480 | def media_download_options_hidden(self) -> bool: | CODE |
| LOW | discord/channel.py | 3627 | def _threaded_channel_factory(channel_type: int): | CODE |
| LOW | discord/channel.py | 3638 | def _threaded_guild_channel_factory(channel_type: int): | CODE |
| LOW | discord/member.py | 695 | def display_avatar_decoration(self) -> Asset | None: | CODE |
| LOW | discord/partial_emoji.py | 170 | def _to_forum_reaction_payload( | CODE |
| LOW | discord/message.py | 1379 | def _rebind_cached_references( | STRING |
| LOW | discord/message.py | 2307 | def to_message_reference_dict( | STRING |
| LOW | discord/role.py | 260 | def is_available_for_purchase(self) -> bool: | CODE |
| LOW | discord/role.py | 278 | def is_guild_connections_role(self) -> bool: | CODE |
| LOW | discord/role.py | 650 | def is_available_for_purchase(self) -> bool: | CODE |
| LOW | discord/role.py | 667 | def is_guild_connections_role(self) -> bool: | CODE |
| LOW | discord/bot.py | 110 | def pending_application_commands(self): | CODE |
| LOW | discord/bot.py | 159 | def remove_application_command( | CODE |
| LOW | discord/bot.py | 820 | async def process_application_commands( | CODE |
| LOW | discord/bot.py | 895 | async def on_application_command_auto_complete( | CODE |
| LOW | discord/bot.py | 1220 | def walk_application_commands(self) -> Generator[ApplicationCommand]: | CODE |
| LOW | discord/bot.py | 1289 | async def invoke_application_command(self, ctx: ApplicationContext) -> None: | STRING |
| LOW | discord/bot.py | 1385 | async def on_application_command_error( | STRING |
| LOW | discord/utils.py | 1303 | def normalise_optional_params(parameters: Iterable[Any]) -> tuple[Any, ...]: | STRING |
| LOW | discord/utils.py | 1602 | def get_missing_voice_dependencies() -> tuple[str, ...]: | STRING |
| LOW | discord/utils.py | 1617 | def warn_if_voice_dependencies_missing() -> None: | STRING |
| LOW | discord/http.py | 1180 | def start_thread_with_message( | CODE |
| LOW | discord/http.py | 1204 | def start_thread_without_message( | CODE |
| LOW | discord/http.py | 1360 | def get_public_archived_threads( | CODE |
| LOW | discord/http.py | 1375 | def get_private_archived_threads( | CODE |
| LOW | discord/http.py | 1390 | def get_joined_private_archived_threads( | CODE |
| LOW | discord/http.py | 1715 | def list_premium_sticker_packs(self) -> Response[sticker.ListPremiumStickerPacks]: | CODE |
| LOW | discord/http.py | 1877 | def get_all_application_emojis( | CODE |
| LOW | discord/http.py | 2121 | def update_invite_target_users( | CODE |
| LOW | discord/http.py | 2141 | def get_invite_target_users_job_status( | CODE |
| LOW | discord/http.py | 2311 | def delete_channel_permissions( | CODE |
| LOW | discord/http.py | 2518 | def get_scheduled_event_users( | CODE |
| LOW | discord/http.py | 2624 | def bulk_upsert_global_commands( | CODE |
| LOW | discord/http.py | 2713 | def bulk_upsert_guild_commands( | CODE |
| LOW | discord/http.py | 2729 | def get_auto_moderation_rules( | CODE |
| LOW | discord/http.py | 2753 | def create_auto_moderation_rule( | CODE |
| LOW | discord/http.py | 2766 | def edit_auto_moderation_rule( | CODE |
| LOW | discord/http.py | 2781 | def delete_auto_moderation_rule( | CODE |
| LOW | discord/http.py | 2832 | def create_interaction_response( | CODE |
| LOW | discord/http.py | 2855 | def get_original_interaction_response( | CODE |
| 145 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/appinfo.py | 311 | CODE | |
| LOW | discord/channel.py | 416 | CODE | |
| LOW | discord/channel.py | 797 | CODE | |
| LOW | discord/channel.py | 1106 | CODE | |
| LOW | discord/channel.py | 1214 | CODE | |
| LOW | discord/channel.py | 1488 | CODE | |
| LOW | discord/channel.py | 1919 | CODE | |
| LOW | discord/channel.py | 2084 | CODE | |
| LOW | discord/channel.py | 2507 | CODE | |
| LOW | discord/channel.py | 2772 | CODE | |
| LOW | discord/member.py | 865 | CODE | |
| LOW | discord/message.py | 391 | CODE | |
| LOW | discord/message.py | 1729 | CODE | |
| LOW | discord/message.py | 1745 | CODE | |
| LOW | discord/role.py | 786 | CODE | |
| LOW | discord/threads.py | 521 | CODE | |
| LOW | discord/threads.py | 602 | CODE | |
| LOW | discord/bot.py | 916 | CODE | |
| LOW | discord/bot.py | 968 | CODE | |
| LOW | discord/bot.py | 1012 | CODE | |
| LOW | discord/bot.py | 1056 | CODE | |
| LOW | discord/http.py | 491 | CODE | |
| LOW | discord/http.py | 554 | CODE | |
| LOW | discord/http.py | 624 | CODE | |
| LOW | discord/http.py | 1226 | CODE | |
| LOW | discord/http.py | 2040 | CODE | |
| LOW | discord/automod.py | 483 | CODE | |
| LOW | discord/interactions.py | 528 | CODE | |
| LOW | discord/interactions.py | 733 | CODE | |
| LOW | discord/interactions.py | 750 | CODE | |
| LOW | discord/interactions.py | 1055 | CODE | |
| LOW | discord/interactions.py | 1247 | CODE | |
| LOW | discord/interactions.py | 1615 | CODE | |
| LOW | discord/embeds.py | 351 | CODE | |
| LOW | discord/guild.py | 1465 | CODE | |
| LOW | discord/guild.py | 1598 | CODE | |
| LOW | discord/guild.py | 1707 | CODE | |
| LOW | discord/guild.py | 1832 | CODE | |
| LOW | discord/guild.py | 2083 | CODE | |
| LOW | discord/guild.py | 3360 | CODE | |
| LOW | discord/guild.py | 3376 | CODE | |
| LOW | discord/guild.py | 3391 | CODE | |
| LOW | discord/scheduled_events.py | 278 | CODE | |
| LOW | discord/abc.py | 124 | CODE | |
| LOW | discord/abc.py | 1209 | CODE | |
| LOW | discord/abc.py | 1374 | CODE | |
| LOW | discord/abc.py | 1396 | CODE | |
| LOW | discord/abc.py | 1418 | CODE | |
| LOW | discord/abc.py | 1440 | CODE | |
| LOW | discord/abc.py | 1461 | CODE | |
| LOW | discord/webhook/sync.py | 465 | CODE | |
| LOW | discord/webhook/sync.py | 938 | CODE | |
| LOW | discord/webhook/sync.py | 956 | CODE | |
| LOW | discord/webhook/sync.py | 974 | CODE | |
| LOW | discord/webhook/sync.py | 1177 | CODE | |
| LOW | discord/webhook/async_.py | 634 | CODE | |
| LOW | discord/webhook/async_.py | 113 | CODE | |
| LOW | discord/webhook/async_.py | 331 | CODE | |
| LOW | discord/webhook/async_.py | 893 | CODE | |
| LOW | discord/webhook/async_.py | 1666 | CODE | |
| 41 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/user.py | 606 | except Exception: | CODE |
| MEDIUM | discord/user.py | 602 | def __del__(self) -> None: | CODE |
| LOW | discord/gateway.py | 205 | except Exception: | CODE |
| LOW | discord/gateway.py | 593 | except Exception as exc: | CODE |
| LOW | discord/oggparse.py | 75 | except Exception: | CODE |
| LOW | discord/client.py | 469 | except Exception: | CODE |
| LOW | discord/client.py | 504 | except Exception as exc: | CODE |
| LOW | discord/client.py | 795 | except Exception: | CODE |
| LOW | discord/shard.py | 191 | except Exception as e: | CODE |
| LOW | discord/shard.py | 213 | except Exception as e: | CODE |
| LOW | discord/shard.py | 231 | except Exception as e: | CODE |
| LOW | discord/shard.py | 435 | except Exception: | CODE |
| LOW | discord/shard.py | 495 | except Exception: | CODE |
| LOW | discord/player.py | 181 | except Exception: | CODE |
| LOW | discord/player.py | 243 | except Exception: | CODE |
| LOW | discord/player.py | 276 | except Exception: | CODE |
| LOW | discord/player.py | 292 | except Exception: | CODE |
| LOW | discord/player.py | 303 | except Exception: | CODE |
| LOW | discord/player.py | 880 | except Exception as exc: | CODE |
| LOW | discord/player.py | 893 | except Exception as exc: | CODE |
| LOW | discord/player.py | 934 | except Exception as exc: | CODE |
| LOW | discord/player.py | 941 | except Exception: | CODE |
| MEDIUM | discord/player.py | 877 | def run(self) -> None: | CODE |
| LOW | discord/opus.py | 297 | except Exception: | CODE |
| LOW | discord/cog.py | 592 | except Exception as e: | CODE |
| LOW | discord/cog.py | 638 | except Exception: | CODE |
| LOW | discord/cog.py | 790 | except Exception: | CODE |
| LOW | discord/cog.py | 808 | except Exception as e: | CODE |
| LOW | discord/cog.py | 820 | except Exception as e: | CODE |
| LOW | discord/cog.py | 935 | except Exception as exc: | CODE |
| LOW | discord/cog.py | 1152 | except Exception: | CODE |
| LOW | discord/__main__.py | 76 | except Exception as exc: | CODE |
| LOW | discord/state.py | 151 | except Exception: | CODE |
| LOW | discord/abc.py | 2093 | except Exception: | STRING |
| LOW | discord/ui/view.py | 408 | except Exception as e: | CODE |
| LOW | discord/ui/view.py | 1046 | except Exception: | CODE |
| LOW | discord/ui/modal.py | 527 | except Exception as e: | CODE |
| LOW | discord/ext/tasks/__init__.py | 244 | except Exception as exc: | CODE |
| LOW | discord/ext/commands/flags.py | 420 | except Exception as e: | CODE |
| LOW | discord/ext/commands/flags.py | 447 | except Exception as e: | CODE |
| LOW | discord/ext/commands/flags.py | 491 | except Exception as e: | CODE |
| LOW | discord/ext/commands/converter.py | 777 | except Exception as exc: | CODE |
| LOW | discord/ext/commands/converter.py | 1163 | except Exception as exc: | STRING |
| LOW | discord/ext/commands/converter.py | 1170 | except Exception as exc: | STRING |
| MEDIUM | discord/ext/commands/core.py | 161 | def wrapped(*args, **kwargs): | CODE |
| MEDIUM | discord/ext/commands/core.py | 177 | def wrapped(*args, **kwargs): | CODE |
| LOW | discord/ext/commands/core.py | 168 | except Exception as exc: | CODE |
| LOW | discord/ext/commands/core.py | 186 | except Exception as exc: | CODE |
| LOW | discord/ext/commands/bot.py | 142 | except Exception: | CODE |
| LOW | discord/ext/commands/bot.py | 148 | except Exception: | CODE |
| LOW | discord/voice/gateway.py | 313 | except Exception as exc: | CODE |
| LOW | discord/voice/gateway.py | 334 | except Exception as exc: | CODE |
| LOW | discord/voice/client.py | 262 | except Exception: | CODE |
| LOW | discord/voice/state.py | 142 | except Exception: | CODE |
| LOW | discord/voice/state.py | 200 | except Exception: | CODE |
| LOW | discord/voice/state.py | 498 | except Exception: | CODE |
| LOW | discord/voice/state.py | 576 | except Exception: | CODE |
| LOW | discord/voice/state.py | 624 | except Exception: | CODE |
| LOW | discord/voice/state.py | 833 | except Exception: | CODE |
| LOW⚡ | discord/voice/receive/reader.py | 136 | except Exception as exc: | CODE |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/gateway.py | 157 | CODE | |
| LOW | discord/gateway.py | 626 | CODE | |
| LOW | discord/enums.py | 538 | CODE | |
| LOW | discord/asset.py | 384 | CODE | |
| LOW | discord/client.py | 490 | CODE | |
| LOW | discord/client.py | 683 | CODE | |
| LOW | discord/channel.py | 3595 | CODE | |
| LOW | discord/activity.py | 853 | CODE | |
| LOW | discord/activity.py | 772 | CODE | |
| LOW | discord/message.py | 1099 | CODE | |
| LOW | discord/message.py | 1745 | CODE | |
| LOW | discord/message.py | 2321 | CODE | |
| LOW | discord/shard.py | 461 | CODE | |
| LOW | discord/bot.py | 197 | CODE | |
| LOW | discord/bot.py | 245 | CODE | |
| LOW | discord/bot.py | 446 | CODE | |
| LOW | discord/bot.py | 693 | CODE | |
| LOW | discord/bot.py | 820 | CODE | |
| LOW | discord/bot.py | 278 | CODE | |
| LOW | discord/bot.py | 528 | CODE | |
| LOW | discord/utils.py | 619 | CODE | |
| LOW | discord/utils.py | 815 | CODE | |
| LOW | discord/utils.py | 1308 | CODE | |
| LOW | discord/http.py | 234 | CODE | |
| LOW | discord/iterators.py | 214 | CODE | |
| LOW | discord/iterators.py | 269 | CODE | |
| LOW | discord/iterators.py | 336 | CODE | |
| LOW | discord/components.py | 1293 | CODE | |
| LOW | discord/cog.py | 565 | CODE | |
| LOW | discord/cog.py | 614 | CODE | |
| LOW | discord/cog.py | 853 | CODE | |
| LOW | discord/audit_logs.py | 296 | CODE | |
| LOW | discord/audit_logs.py | 519 | CODE | |
| LOW | discord/__main__.py | 266 | CODE | |
| LOW | discord/guild.py | 1832 | CODE | |
| LOW | discord/guild.py | 2083 | CODE | |
| LOW | discord/state.py | 632 | CODE | |
| LOW | discord/state.py | 1897 | CODE | |
| LOW | discord/state.py | 2179 | CODE | |
| LOW | discord/abc.py | 409 | CODE | |
| LOW | discord/abc.py | 1084 | CODE | |
| LOW | discord/abc.py | 1461 | CODE | |
| LOW | discord/abc.py | 1862 | CODE | |
| LOW | discord/webhook/sync.py | 104 | CODE | |
| LOW | discord/webhook/async_.py | 113 | CODE | |
| LOW | discord/ui/core.py | 118 | CODE | |
| LOW | discord/ui/container.py | 199 | CODE | |
| LOW | discord/ui/view.py | 336 | CODE | |
| LOW | discord/ui/select.py | 664 | CODE | |
| LOW | discord/ext/tasks/__init__.py | 186 | CODE | |
| LOW | discord/ext/bridge/core.py | 633 | CODE | |
| LOW | discord/ext/commands/flags.py | 173 | CODE | |
| LOW | discord/ext/commands/flags.py | 458 | CODE | |
| LOW | discord/ext/commands/flags.py | 634 | CODE | |
| LOW | discord/ext/commands/converter.py | 1181 | CODE | |
| LOW | discord/ext/commands/core.py | 752 | CODE | |
| LOW | discord/ext/commands/core.py | 1090 | CODE | |
| LOW | discord/ext/commands/core.py | 1153 | CODE | |
| LOW | discord/ext/commands/cooldowns.py | 65 | CODE | |
| LOW | discord/ext/commands/view.py | 133 | CODE | |
| 24 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | discord/ext/commands/cooldowns.py | 301 | """This class is a version of a semaphore. | STRING |
| MEDIUM | examples/basic_async_bot.py | 18 | @bot.slash_command(guild_ids=[...]) # Create a slash command. | CODE |
| MEDIUM | examples/background_task_asyncio.py | 10 | # Create the background task and run it in the background | COMMENT |
| MEDIUM | examples/views/link.py | 6 | # Define a simple View that gives us a Google link button. | COMMENT |
| MEDIUM | examples/views/role_select.py | 32 | # Create the view containing our dropdown | COMMENT |
| MEDIUM | examples/views/ephemeral.py | 4 | # Define a simple View that gives us a counter button. | COMMENT |
| MEDIUM | examples/views/ephemeral.py | 21 | # Define a View that will give us our own personal counter button. | COMMENT |
| MEDIUM | examples/views/channel_select.py | 32 | # Create the view containing our dropdown | COMMENT |
| MEDIUM | examples/views/persistent.py | 7 | # Define a simple View that persists between bot restarts. | COMMENT |
| MEDIUM | examples/views/dropdown.py | 65 | # Create the view containing our dropdown | COMMENT |
| MEDIUM | examples/views/counter.py | 20 | # Define a simple View that gives us a counter button. | COMMENT |
| MEDIUM | examples/views/tic_tac_toe.py | 21 | # This function is called whenever this particular button is pressed. | COMMENT |
| MEDIUM | examples/views/confirm.py | 20 | # Define a simple View that gives us a confirmation menu. | COMMENT |
| MEDIUM | examples/app_commands/context_menus.py | 13 | @bot.user_command() # Create a global user command | CODE |
| MEDIUM⚡ | examples/app_commands/slash_basic.py | 20 | @bot.slash_command(guild_ids=[...]) # Create a slash command | CODE |
| MEDIUM | examples/app_commands/slash_groups.py | 10 | ) # Create a slash command group | CODE |
| MEDIUM | examples/app_commands/slash_groups.py | 17 | @math.command() # Create a slash command under the math group | CODE |
| MEDIUM | examples/app_commands/slash_cog.py | 13 | ) # Create a slash command for the supplied guilds. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/flags.py | 186 | def _set_flag(self, o: int, toggle: bool) -> None: | CODE |
| LOW | discord/flags.py | 253 | def _set_flag(self, o: int, toggle: bool) -> None: | STRING |
| LOW | discord/invite.py | 803 | def set_scheduled_event(self, event: ScheduledEvent) -> None: | CODE |
| LOW | discord/channel.py | 3343 | def _update_group(self, data: GroupChannelPayload) -> None: | CODE |
| LOW | discord/member.py | 399 | def _update_from_message(self, data: MemberPayload) -> None: | CODE |
| LOW | discord/player.py | 923 | def set_source(self, source: AudioSource) -> None: | CODE |
| LOW⚡ | discord/opus.py | 443 | def set_bandwidth(self, req: BAND_CTL) -> None: | CODE |
| LOW⚡ | discord/opus.py | 453 | def set_signal_type(self, req: SIGNAL_CTL) -> None: | CODE |
| LOW⚡ | discord/opus.py | 463 | def set_fec(self, enabled: bool = True) -> None: | CODE |
| LOW⚡ | discord/opus.py | 466 | def set_expected_packet_loss_percent(self, percentage: float) -> None: | CODE |
| LOW | discord/opus.py | 621 | def set_user_id(self, user_id: int) -> None: | CODE |
| LOW | discord/state.py | 367 | def _update_references(self, ws: DiscordWebSocket) -> None: | CODE |
| LOW | discord/state.py | 2149 | def _update_message_references(self) -> None: | CODE |
| LOW | discord/voice/state.py | 909 | def _update_voice_channel(self, channel_id: int | None) -> None: | CODE |
| LOW | discord/voice/utils/buffer.py | 114 | def _update_has_item(self) -> None: | CODE |
| LOW | discord/voice/receive/reader.py | 107 | def update_secret_key(self, secret_key: bytes) -> None: | CODE |
| LOW | discord/voice/receive/reader.py | 352 | def update_secret_key(self, secret_key: bytes) -> None: | CODE |
| LOW | discord/voice/receive/router.py | 88 | def set_sink(self, sink: Sink) -> None: | CODE |
| LOW | discord/voice/receive/router.py | 92 | def set_user_id(self, ssrc: int, user_id: int) -> None: | CODE |
| LOW | discord/voice/receive/router.py | 158 | def set_sink(self, sink: Sink) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/custom_context.py | 66 | # With your new helper function, you can add a | COMMENT |
| MEDIUM | examples/views/dropdown.py | 9 | # For example, you can use self.bot to retrieve a user or perform other functions in the callback. | COMMENT |
| MEDIUM | examples/views/dropdown.py | 10 | # Alternatively you can use Interaction.client, so you don't need to pass the bot instance. | COMMENT |
| MEDIUM⚡ | examples/app_commands/slash_basic.py | 13 | # Note: If you want you can use commands.Bot instead of discord.Bot. | COMMENT |
| MEDIUM⚡ | examples/app_commands/slash_basic.py | 16 | # With discord.Bot you can use @bot.command as an alias | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/enums.py | 142 | # Special case classmethod to just pass through | COMMENT |
| LOW | discord/message.py | 1283 | # didn't find anything so just return | STRING |
| LOW | discord/message.py | 1899 | # don't want it to remove any attachments when we just add a new file | STRING |
| LOW | discord/http.py | 334 | # the request was successful so just return the text/json | COMMENT |
| LOW | discord/ext/commands/core.py | 1203 | # since we have no checks, then we just return True. | COMMENT |
| LOW | discord/commands/core.py | 452 | # since we have no checks, then we just return True. | COMMENT |
| LOW | discord/commands/core.py | 1065 | # We couldn't resolve the object, so we just return an empty object | STRING |
| LOW | examples/converters.py | 57 | # Otherwise, we just return the converted member value. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/components.py | 272 | "placeholder", | CODE |
| LOW | discord/components.py | 289 | self.placeholder: str | None = data.get("placeholder", None) | CODE |
| LOW | discord/components.py | 305 | payload["placeholder"] = self.placeholder | CODE |
| LOW | discord/components.py | 457 | "placeholder", | CODE |
| LOW | discord/components.py | 474 | self.placeholder: str | None = data.get("placeholder") | CODE |
| LOW | discord/components.py | 504 | payload["placeholder"] = self.placeholder | CODE |
| LOW | discord/ui/input_text.py | 79 | "placeholder", | CODE |
| LOW | discord/ui/select.py | 174 | "placeholder", | CODE |
| LOW | discord/ui/select.py | 1014 | "placeholder": placeholder, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pre-commit-config.yaml | 41 | rev: v1.1.3 | COMMENT |
| LOW | .pre-commit-config.yaml | 61 | # name: pylint | COMMENT |
| LOW | discord/permissions.py | 301 | COMMENT | |
| LOW | examples/converters.py | 81 | @bot.command() | COMMENT |
| LOW | .github/workflows/release.yml | 81 | # v_rule_id: ${{ steps.get_rule_ids.outputs.v_rule_id }} | COMMENT |
| LOW | .github/workflows/release.yml | 261 | env: | COMMENT |
| LOW | .github/workflows/release.yml | 321 | # uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | COMMENT |
| LOW | .github/workflows/release.yml | 341 | # if: always() | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/converters.py | 47 | # In this example we have made a custom converter. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | discord/opus.py | 610 | self._buffer.push(packet) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/ui/core.py | 98 | # Check if we've elapsed our currently set timeout | COMMENT |
| LOW | discord/ext/commands/help.py | 873 | # Check if it's a cog | COMMENT |
| LOW | examples/views/button_roles.py | 79 | # Loop through the list of roles and add a new button to the view for each role. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/views/tic_tac_toe.py | 117 | # If we're here, we need to check if a tie has been reached. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/audio_recording_merged.py | 81 | sync_start=True, # WARNING: This feature is very unstable and may break at any time. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/message.py | 1349 | # TODO: consider adding to cache here | STRING |