Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
This report presents the forensic synthetic code analysis of Pycord-Development/pycord, a Python project with 2,953 GitHub stars. SynthScan v2.0 examined 100,950 lines of code across 274 source files, recording 1091 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 18.8 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1091 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 |
| 136 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 | |
| 292 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | discord/gateway.py | 766 | 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 | 269 | def guild_reminder_notifications(self): | CODE |
| LOW | discord/flags.py | 277 | def join_notification_replies(self): | CODE |
| LOW | discord/flags.py | 389 | def failed_to_mention_some_roles_in_thread(self): | CODE |
| LOW | discord/flags.py | 551 | def early_verified_bot_developer(self): | CODE |
| LOW | discord/flags.py | 559 | def discord_certified_moderator(self): | CODE |
| LOW | discord/flags.py | 1147 | def auto_moderation_configuration(self): | CODE |
| LOW | discord/flags.py | 1159 | def auto_moderation_execution(self): | CODE |
| LOW | discord/flags.py | 1440 | def application_auto_moderation_rule_create_badge(self): | CODE |
| LOW | discord/flags.py | 1474 | def gateway_guild_members_limited(self): | CODE |
| LOW | discord/flags.py | 1481 | def verification_pending_guild_limit(self): | CODE |
| LOW | discord/flags.py | 1498 | def gateway_message_content_limited(self): | CODE |
| LOW | discord/flags.py | 1583 | def hide_media_download_options(self): | CODE |
| LOW | discord/client.py | 613 | async def _call_before_identify_hook( | CODE |
| LOW | discord/client.py | 1998 | async def fetch_premium_sticker_packs(self) -> list[StickerPack]: | CODE |
| LOW | discord/client.py | 2094 | async def fetch_role_connection_metadata_records( | CODE |
| LOW | discord/client.py | 2113 | async def update_role_connection_metadata_records( | CODE |
| LOW | discord/invite.py | 752 | 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 | 1338 | def normalise_optional_params(parameters: Iterable[Any]) -> tuple[Any, ...]: | STRING |
| LOW | discord/utils.py | 1639 | def get_missing_voice_dependencies() -> tuple[str, ...]: | STRING |
| LOW | discord/utils.py | 1654 | 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 |
| 140 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 | 1463 | CODE | |
| LOW | discord/guild.py | 1596 | CODE | |
| LOW | discord/guild.py | 1705 | CODE | |
| LOW | discord/guild.py | 1830 | CODE | |
| LOW | discord/guild.py | 2081 | CODE | |
| LOW | discord/guild.py | 3358 | CODE | |
| LOW | discord/guild.py | 3374 | CODE | |
| LOW | discord/guild.py | 3389 | CODE | |
| LOW | discord/scheduled_events.py | 278 | CODE | |
| LOW | discord/abc.py | 124 | CODE | |
| LOW | discord/abc.py | 1205 | CODE | |
| LOW | discord/abc.py | 1370 | CODE | |
| LOW | discord/abc.py | 1392 | CODE | |
| LOW | discord/abc.py | 1414 | CODE | |
| LOW | discord/abc.py | 1436 | CODE | |
| LOW | discord/abc.py | 1457 | 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 | 589 | except Exception as exc: | CODE |
| LOW | discord/oggparse.py | 75 | except Exception: | CODE |
| LOW | discord/client.py | 465 | except Exception: | CODE |
| LOW | discord/client.py | 500 | except Exception as exc: | CODE |
| LOW | discord/client.py | 791 | 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 | 152 | except Exception: | CODE |
| LOW | discord/abc.py | 2089 | 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 |
| LOW | discord/ext/commands/core.py | 170 | except Exception as exc: | CODE |
| LOW | discord/ext/commands/core.py | 188 | except Exception as exc: | CODE |
| MEDIUM | discord/ext/commands/core.py | 163 | def wrapped(*args, **kwargs): | CODE |
| MEDIUM | discord/ext/commands/core.py | 179 | def wrapped(*args, **kwargs): | 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 | 268 | 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 | 622 | CODE | |
| LOW | discord/enums.py | 538 | CODE | |
| LOW | discord/asset.py | 384 | CODE | |
| LOW | discord/client.py | 486 | CODE | |
| LOW | discord/client.py | 679 | 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 | 640 | CODE | |
| LOW | discord/utils.py | 836 | CODE | |
| LOW | discord/utils.py | 1343 | 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 | 1830 | CODE | |
| LOW | discord/guild.py | 2081 | CODE | |
| LOW | discord/state.py | 620 | CODE | |
| LOW | discord/state.py | 1885 | CODE | |
| LOW | discord/state.py | 2167 | CODE | |
| LOW | discord/abc.py | 405 | CODE | |
| LOW | discord/abc.py | 1080 | CODE | |
| LOW | discord/abc.py | 1457 | CODE | |
| LOW | discord/abc.py | 1858 | CODE | |
| LOW | discord/webhook/sync.py | 104 | CODE | |
| LOW | discord/webhook/async_.py | 113 | CODE | |
| LOW | discord/ui/core.py | 119 | 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 | 297 | """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 | 185 | def _set_flag(self, o: int, toggle: bool) -> None: | CODE |
| LOW | discord/flags.py | 252 | def _set_flag(self, o: int, toggle: bool) -> None: | STRING |
| LOW | discord/invite.py | 801 | 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 | 356 | def _update_references(self, ws: DiscordWebSocket) -> None: | CODE |
| LOW | discord/state.py | 2137 | 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 | 453 | # since we have no checks, then we just return True. | COMMENT |
| LOW | discord/commands/core.py | 1066 | # 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 | 99 | # 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 |