Repository Analysis

Pycord-Development/pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python

18.8 Moderate AI signal View on GitHub

Analysis Overview

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).

18.8
Adjusted Score
18.8
Raw Score
100%
Time Factor
2026-08-09
Last Push
3.0K
Stars
Python
Language
101.0K
Lines of Code
274
Files
1.1K
Pattern Hits
2026-08-09
Scan Date
0.72
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 198MEDIUM 32LOW 861

Directory Score Breakdown

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.

Pattern Findings

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.

Cross-File Repetition196 hits · 980 pts
SeverityFileLineSnippetContext
HIGHdiscord/user.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/mixins.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/sticker.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/gateway.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/enums.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/widget.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/asset.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/_version.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/object.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/emoji.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/oggparse.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/appinfo.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/flags.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/client.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/invite.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/channel.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/member.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/activity.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/partial_emoji.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/message.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/role.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/monetization.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/welcome_screen.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/team.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/backoff.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/shard.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/file.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/threads.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/context_managers.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/bot.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/utils.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/player.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/http.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/opus.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/iterators.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/template.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/permissions.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/mentions.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/errors.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/interactions.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/embeds.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/components.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/stage_instance.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/cog.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/audit_logs.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/colour.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/integrations.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/__main__.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/guild.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/state.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/raw_models.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/reaction.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/abc.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/webhook/sync.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/webhook/async_.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/ui/button.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/ui/view.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/ui/select.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/ui/item.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
HIGHdiscord/types/user.py0the mit license (mit) copyright (c) 2025 lala sabathil <lala@pycord.dev> & pycord development permission is hereby grantSTRING
136 more matches not shown…
Unused Imports352 hits · 331 pts
SeverityFileLineSnippetContext
LOWdiscord/user.py26CODE
LOWdiscord/sticker.py26CODE
LOWdiscord/gateway.py26CODE
LOWdiscord/enums.py26CODE
LOWdiscord/widget.py26CODE
LOWdiscord/asset.py26CODE
LOWdiscord/_version.py26CODE
LOWdiscord/object.py26CODE
LOWdiscord/emoji.py26CODE
LOWdiscord/oggparse.py26CODE
LOWdiscord/onboarding.py25CODE
LOWdiscord/appinfo.py26CODE
LOWdiscord/flags.py26CODE
LOWdiscord/client.py26CODE
LOWdiscord/client.py52CODE
LOWdiscord/client.py54CODE
LOWdiscord/invite.py26CODE
LOWdiscord/channel.py26CODE
LOWdiscord/member.py26CODE
LOWdiscord/activity.py26CODE
LOWdiscord/partial_emoji.py26CODE
LOWdiscord/__init__.py23CODE
LOWdiscord/__init__.py28CODE
LOWdiscord/__init__.py28CODE
LOWdiscord/__init__.py28CODE
LOWdiscord/__init__.py28CODE
LOWdiscord/__init__.py28CODE
LOWdiscord/__init__.py29CODE
LOWdiscord/__init__.py30CODE
LOWdiscord/__init__.py31CODE
LOWdiscord/__init__.py32CODE
LOWdiscord/__init__.py33CODE
LOWdiscord/__init__.py34CODE
LOWdiscord/__init__.py35CODE
LOWdiscord/__init__.py36CODE
LOWdiscord/__init__.py37CODE
LOWdiscord/__init__.py38CODE
LOWdiscord/__init__.py39CODE
LOWdiscord/__init__.py40CODE
LOWdiscord/__init__.py41CODE
LOWdiscord/__init__.py42CODE
LOWdiscord/__init__.py43CODE
LOWdiscord/__init__.py44CODE
LOWdiscord/__init__.py45CODE
LOWdiscord/__init__.py46CODE
LOWdiscord/__init__.py47CODE
LOWdiscord/__init__.py48CODE
LOWdiscord/__init__.py49CODE
LOWdiscord/__init__.py50CODE
LOWdiscord/__init__.py51CODE
LOWdiscord/__init__.py52CODE
LOWdiscord/__init__.py53CODE
LOWdiscord/__init__.py54CODE
LOWdiscord/__init__.py55CODE
LOWdiscord/__init__.py56CODE
LOWdiscord/__init__.py57CODE
LOWdiscord/__init__.py58CODE
LOWdiscord/__init__.py59CODE
LOWdiscord/__init__.py60CODE
LOWdiscord/__init__.py61CODE
292 more matches not shown…
Hyper-Verbose Identifiers200 hits · 184 pts
SeverityFileLineSnippetContext
LOWdiscord/gateway.py766 async def request_soundboard_sounds(self, guild_ids):CODE
LOWdiscord/asset.py207 def _from_user_primary_guild_tag(CODE
LOWdiscord/asset.py336 def _from_scheduled_event_image(CODE
LOWdiscord/flags.py269 def guild_reminder_notifications(self):CODE
LOWdiscord/flags.py277 def join_notification_replies(self):CODE
LOWdiscord/flags.py389 def failed_to_mention_some_roles_in_thread(self):CODE
LOWdiscord/flags.py551 def early_verified_bot_developer(self):CODE
LOWdiscord/flags.py559 def discord_certified_moderator(self):CODE
LOWdiscord/flags.py1147 def auto_moderation_configuration(self):CODE
LOWdiscord/flags.py1159 def auto_moderation_execution(self):CODE
LOWdiscord/flags.py1440 def application_auto_moderation_rule_create_badge(self):CODE
LOWdiscord/flags.py1474 def gateway_guild_members_limited(self):CODE
LOWdiscord/flags.py1481 def verification_pending_guild_limit(self):CODE
LOWdiscord/flags.py1498 def gateway_message_content_limited(self):CODE
LOWdiscord/flags.py1583 def hide_media_download_options(self):CODE
LOWdiscord/client.py613 async def _call_before_identify_hook(CODE
LOWdiscord/client.py1998 async def fetch_premium_sticker_packs(self) -> list[StickerPack]:CODE
LOWdiscord/client.py2094 async def fetch_role_connection_metadata_records(CODE
LOWdiscord/client.py2113 async def update_role_connection_metadata_records(CODE
LOWdiscord/invite.py752 async def fetch_target_users_job_status(self) -> InviteTargetUsersJobStatus:CODE
LOWdiscord/channel.py1480 def media_download_options_hidden(self) -> bool:CODE
LOWdiscord/channel.py3627def _threaded_channel_factory(channel_type: int):CODE
LOWdiscord/channel.py3638def _threaded_guild_channel_factory(channel_type: int):CODE
LOWdiscord/member.py695 def display_avatar_decoration(self) -> Asset | None:CODE
LOWdiscord/partial_emoji.py170 def _to_forum_reaction_payload(CODE
LOWdiscord/message.py1379 def _rebind_cached_references(STRING
LOWdiscord/message.py2307 def to_message_reference_dict(STRING
LOWdiscord/role.py260 def is_available_for_purchase(self) -> bool:CODE
LOWdiscord/role.py278 def is_guild_connections_role(self) -> bool:CODE
LOWdiscord/role.py650 def is_available_for_purchase(self) -> bool:CODE
LOWdiscord/role.py667 def is_guild_connections_role(self) -> bool:CODE
LOWdiscord/bot.py110 def pending_application_commands(self):CODE
LOWdiscord/bot.py159 def remove_application_command(CODE
LOWdiscord/bot.py820 async def process_application_commands(CODE
LOWdiscord/bot.py895 async def on_application_command_auto_complete(CODE
LOWdiscord/bot.py1220 def walk_application_commands(self) -> Generator[ApplicationCommand]:CODE
LOWdiscord/bot.py1289 async def invoke_application_command(self, ctx: ApplicationContext) -> None:STRING
LOWdiscord/bot.py1385 async def on_application_command_error(STRING
LOWdiscord/utils.py1338def normalise_optional_params(parameters: Iterable[Any]) -> tuple[Any, ...]:STRING
LOWdiscord/utils.py1639def get_missing_voice_dependencies() -> tuple[str, ...]:STRING
LOWdiscord/utils.py1654def warn_if_voice_dependencies_missing() -> None:STRING
LOWdiscord/http.py1180 def start_thread_with_message(CODE
LOWdiscord/http.py1204 def start_thread_without_message(CODE
LOWdiscord/http.py1360 def get_public_archived_threads(CODE
LOWdiscord/http.py1375 def get_private_archived_threads(CODE
LOWdiscord/http.py1390 def get_joined_private_archived_threads(CODE
LOWdiscord/http.py1715 def list_premium_sticker_packs(self) -> Response[sticker.ListPremiumStickerPacks]:CODE
LOWdiscord/http.py1877 def get_all_application_emojis(CODE
LOWdiscord/http.py2121 def update_invite_target_users(CODE
LOWdiscord/http.py2141 def get_invite_target_users_job_status(CODE
LOWdiscord/http.py2311 def delete_channel_permissions(CODE
LOWdiscord/http.py2518 def get_scheduled_event_users(CODE
LOWdiscord/http.py2624 def bulk_upsert_global_commands(CODE
LOWdiscord/http.py2713 def bulk_upsert_guild_commands(CODE
LOWdiscord/http.py2729 def get_auto_moderation_rules(CODE
LOWdiscord/http.py2753 def create_auto_moderation_rule(CODE
LOWdiscord/http.py2766 def edit_auto_moderation_rule(CODE
LOWdiscord/http.py2781 def delete_auto_moderation_rule(CODE
LOWdiscord/http.py2832 def create_interaction_response(CODE
LOWdiscord/http.py2855 def get_original_interaction_response(CODE
140 more matches not shown…
AI Structural Patterns101 hits · 98 pts
SeverityFileLineSnippetContext
LOWdiscord/appinfo.py311CODE
LOWdiscord/channel.py416CODE
LOWdiscord/channel.py797CODE
LOWdiscord/channel.py1106CODE
LOWdiscord/channel.py1214CODE
LOWdiscord/channel.py1488CODE
LOWdiscord/channel.py1919CODE
LOWdiscord/channel.py2084CODE
LOWdiscord/channel.py2507CODE
LOWdiscord/channel.py2772CODE
LOWdiscord/member.py865CODE
LOWdiscord/message.py391CODE
LOWdiscord/message.py1729CODE
LOWdiscord/message.py1745CODE
LOWdiscord/role.py786CODE
LOWdiscord/threads.py521CODE
LOWdiscord/threads.py602CODE
LOWdiscord/bot.py916CODE
LOWdiscord/bot.py968CODE
LOWdiscord/bot.py1012CODE
LOWdiscord/bot.py1056CODE
LOWdiscord/http.py491CODE
LOWdiscord/http.py554CODE
LOWdiscord/http.py624CODE
LOWdiscord/http.py1226CODE
LOWdiscord/http.py2040CODE
LOWdiscord/automod.py483CODE
LOWdiscord/interactions.py528CODE
LOWdiscord/interactions.py733CODE
LOWdiscord/interactions.py750CODE
LOWdiscord/interactions.py1055CODE
LOWdiscord/interactions.py1247CODE
LOWdiscord/interactions.py1615CODE
LOWdiscord/embeds.py351CODE
LOWdiscord/guild.py1463CODE
LOWdiscord/guild.py1596CODE
LOWdiscord/guild.py1705CODE
LOWdiscord/guild.py1830CODE
LOWdiscord/guild.py2081CODE
LOWdiscord/guild.py3358CODE
LOWdiscord/guild.py3374CODE
LOWdiscord/guild.py3389CODE
LOWdiscord/scheduled_events.py278CODE
LOWdiscord/abc.py124CODE
LOWdiscord/abc.py1205CODE
LOWdiscord/abc.py1370CODE
LOWdiscord/abc.py1392CODE
LOWdiscord/abc.py1414CODE
LOWdiscord/abc.py1436CODE
LOWdiscord/abc.py1457CODE
LOWdiscord/webhook/sync.py465CODE
LOWdiscord/webhook/sync.py938CODE
LOWdiscord/webhook/sync.py956CODE
LOWdiscord/webhook/sync.py974CODE
LOWdiscord/webhook/sync.py1177CODE
LOWdiscord/webhook/async_.py634CODE
LOWdiscord/webhook/async_.py113CODE
LOWdiscord/webhook/async_.py331CODE
LOWdiscord/webhook/async_.py893CODE
LOWdiscord/webhook/async_.py1666CODE
41 more matches not shown…
Excessive Try-Catch Wrapping82 hits · 91 pts
SeverityFileLineSnippetContext
LOWdiscord/user.py606 except Exception:CODE
MEDIUMdiscord/user.py602def __del__(self) -> None:CODE
LOWdiscord/gateway.py205 except Exception:CODE
LOWdiscord/gateway.py589 except Exception as exc:CODE
LOWdiscord/oggparse.py75 except Exception:CODE
LOWdiscord/client.py465 except Exception:CODE
LOWdiscord/client.py500 except Exception as exc:CODE
LOWdiscord/client.py791 except Exception:CODE
LOWdiscord/shard.py191 except Exception as e:CODE
LOWdiscord/shard.py213 except Exception as e:CODE
LOWdiscord/shard.py231 except Exception as e:CODE
LOWdiscord/shard.py435 except Exception:CODE
LOWdiscord/shard.py495 except Exception:CODE
LOWdiscord/player.py181 except Exception:CODE
LOWdiscord/player.py243 except Exception:CODE
LOWdiscord/player.py276 except Exception:CODE
LOWdiscord/player.py292 except Exception:CODE
LOWdiscord/player.py303 except Exception:CODE
LOWdiscord/player.py880 except Exception as exc:CODE
LOWdiscord/player.py893 except Exception as exc:CODE
LOWdiscord/player.py934 except Exception as exc:CODE
LOWdiscord/player.py941 except Exception:CODE
MEDIUMdiscord/player.py877def run(self) -> None:CODE
LOWdiscord/opus.py297 except Exception:CODE
LOWdiscord/cog.py592 except Exception as e:CODE
LOWdiscord/cog.py638 except Exception:CODE
LOWdiscord/cog.py790 except Exception:CODE
LOWdiscord/cog.py808 except Exception as e:CODE
LOWdiscord/cog.py820 except Exception as e:CODE
LOWdiscord/cog.py935 except Exception as exc:CODE
LOWdiscord/cog.py1152 except Exception:CODE
LOWdiscord/__main__.py76 except Exception as exc:CODE
LOWdiscord/state.py152 except Exception:CODE
LOWdiscord/abc.py2089 except Exception:STRING
LOWdiscord/ui/view.py408 except Exception as e:CODE
LOWdiscord/ui/view.py1046 except Exception:CODE
LOWdiscord/ui/modal.py527 except Exception as e:CODE
LOWdiscord/ext/tasks/__init__.py244 except Exception as exc:CODE
LOWdiscord/ext/commands/flags.py420 except Exception as e:CODE
LOWdiscord/ext/commands/flags.py447 except Exception as e:CODE
LOWdiscord/ext/commands/flags.py491 except Exception as e:CODE
LOWdiscord/ext/commands/converter.py777 except Exception as exc:CODE
LOWdiscord/ext/commands/converter.py1163 except Exception as exc:STRING
LOWdiscord/ext/commands/converter.py1170 except Exception as exc:STRING
LOWdiscord/ext/commands/core.py170 except Exception as exc:CODE
LOWdiscord/ext/commands/core.py188 except Exception as exc:CODE
MEDIUMdiscord/ext/commands/core.py163def wrapped(*args, **kwargs):CODE
MEDIUMdiscord/ext/commands/core.py179def wrapped(*args, **kwargs):CODE
LOWdiscord/ext/commands/bot.py142 except Exception:CODE
LOWdiscord/ext/commands/bot.py148 except Exception:CODE
LOWdiscord/voice/gateway.py313 except Exception as exc:CODE
LOWdiscord/voice/gateway.py334 except Exception as exc:CODE
LOWdiscord/voice/client.py268 except Exception:CODE
LOWdiscord/voice/state.py142 except Exception:CODE
LOWdiscord/voice/state.py200 except Exception:CODE
LOWdiscord/voice/state.py498 except Exception:CODE
LOWdiscord/voice/state.py576 except Exception:CODE
LOWdiscord/voice/state.py624 except Exception:CODE
LOWdiscord/voice/state.py833 except Exception:CODE
LOWdiscord/voice/receive/reader.py136 except Exception as exc:CODE
22 more matches not shown…
Deep Nesting84 hits · 82 pts
SeverityFileLineSnippetContext
LOWdiscord/gateway.py157CODE
LOWdiscord/gateway.py622CODE
LOWdiscord/enums.py538CODE
LOWdiscord/asset.py384CODE
LOWdiscord/client.py486CODE
LOWdiscord/client.py679CODE
LOWdiscord/channel.py3595CODE
LOWdiscord/activity.py853CODE
LOWdiscord/activity.py772CODE
LOWdiscord/message.py1099CODE
LOWdiscord/message.py1745CODE
LOWdiscord/message.py2321CODE
LOWdiscord/shard.py461CODE
LOWdiscord/bot.py197CODE
LOWdiscord/bot.py245CODE
LOWdiscord/bot.py446CODE
LOWdiscord/bot.py693CODE
LOWdiscord/bot.py820CODE
LOWdiscord/bot.py278CODE
LOWdiscord/bot.py528CODE
LOWdiscord/utils.py640CODE
LOWdiscord/utils.py836CODE
LOWdiscord/utils.py1343CODE
LOWdiscord/http.py234CODE
LOWdiscord/iterators.py214CODE
LOWdiscord/iterators.py269CODE
LOWdiscord/iterators.py336CODE
LOWdiscord/components.py1293CODE
LOWdiscord/cog.py565CODE
LOWdiscord/cog.py614CODE
LOWdiscord/cog.py853CODE
LOWdiscord/audit_logs.py296CODE
LOWdiscord/audit_logs.py519CODE
LOWdiscord/__main__.py266CODE
LOWdiscord/guild.py1830CODE
LOWdiscord/guild.py2081CODE
LOWdiscord/state.py620CODE
LOWdiscord/state.py1885CODE
LOWdiscord/state.py2167CODE
LOWdiscord/abc.py405CODE
LOWdiscord/abc.py1080CODE
LOWdiscord/abc.py1457CODE
LOWdiscord/abc.py1858CODE
LOWdiscord/webhook/sync.py104CODE
LOWdiscord/webhook/async_.py113CODE
LOWdiscord/ui/core.py119CODE
LOWdiscord/ui/container.py199CODE
LOWdiscord/ui/view.py336CODE
LOWdiscord/ui/select.py664CODE
LOWdiscord/ext/tasks/__init__.py186CODE
LOWdiscord/ext/bridge/core.py633CODE
LOWdiscord/ext/commands/flags.py173CODE
LOWdiscord/ext/commands/flags.py458CODE
LOWdiscord/ext/commands/flags.py634CODE
LOWdiscord/ext/commands/converter.py1181CODE
LOWdiscord/ext/commands/core.py752CODE
LOWdiscord/ext/commands/core.py1090CODE
LOWdiscord/ext/commands/core.py1153CODE
LOWdiscord/ext/commands/cooldowns.py65CODE
LOWdiscord/ext/commands/view.py133CODE
24 more matches not shown…
Self-Referential Comments18 hits · 47 pts
SeverityFileLineSnippetContext
MEDIUMdiscord/ext/commands/cooldowns.py297 """This class is a version of a semaphore.STRING
MEDIUMexamples/basic_async_bot.py18@bot.slash_command(guild_ids=[...]) # Create a slash command.CODE
MEDIUMexamples/background_task_asyncio.py10 # Create the background task and run it in the backgroundCOMMENT
MEDIUMexamples/views/link.py6# Define a simple View that gives us a Google link button.COMMENT
MEDIUMexamples/views/role_select.py32 # Create the view containing our dropdownCOMMENT
MEDIUMexamples/views/ephemeral.py4# Define a simple View that gives us a counter button.COMMENT
MEDIUMexamples/views/ephemeral.py21# Define a View that will give us our own personal counter button.COMMENT
MEDIUMexamples/views/channel_select.py32 # Create the view containing our dropdownCOMMENT
MEDIUMexamples/views/persistent.py7# Define a simple View that persists between bot restarts.COMMENT
MEDIUMexamples/views/dropdown.py65 # Create the view containing our dropdownCOMMENT
MEDIUMexamples/views/counter.py20# Define a simple View that gives us a counter button.COMMENT
MEDIUMexamples/views/tic_tac_toe.py21 # This function is called whenever this particular button is pressed.COMMENT
MEDIUMexamples/views/confirm.py20# Define a simple View that gives us a confirmation menu.COMMENT
MEDIUMexamples/app_commands/context_menus.py13@bot.user_command() # Create a global user commandCODE
MEDIUMexamples/app_commands/slash_basic.py20@bot.slash_command(guild_ids=[...]) # Create a slash commandCODE
MEDIUMexamples/app_commands/slash_groups.py10) # Create a slash command groupCODE
MEDIUMexamples/app_commands/slash_groups.py17@math.command() # Create a slash command under the math groupCODE
MEDIUMexamples/app_commands/slash_cog.py13 ) # Create a slash command for the supplied guilds.CODE
Modern Structural Boilerplate20 hits · 21 pts
SeverityFileLineSnippetContext
LOWdiscord/flags.py185 def _set_flag(self, o: int, toggle: bool) -> None:CODE
LOWdiscord/flags.py252 def _set_flag(self, o: int, toggle: bool) -> None:STRING
LOWdiscord/invite.py801 def set_scheduled_event(self, event: ScheduledEvent) -> None:CODE
LOWdiscord/channel.py3343 def _update_group(self, data: GroupChannelPayload) -> None:CODE
LOWdiscord/member.py399 def _update_from_message(self, data: MemberPayload) -> None:CODE
LOWdiscord/player.py923 def set_source(self, source: AudioSource) -> None:CODE
LOWdiscord/opus.py443 def set_bandwidth(self, req: BAND_CTL) -> None:CODE
LOWdiscord/opus.py453 def set_signal_type(self, req: SIGNAL_CTL) -> None:CODE
LOWdiscord/opus.py463 def set_fec(self, enabled: bool = True) -> None:CODE
LOWdiscord/opus.py466 def set_expected_packet_loss_percent(self, percentage: float) -> None:CODE
LOWdiscord/opus.py621 def set_user_id(self, user_id: int) -> None:CODE
LOWdiscord/state.py356 def _update_references(self, ws: DiscordWebSocket) -> None:CODE
LOWdiscord/state.py2137 def _update_message_references(self) -> None:CODE
LOWdiscord/voice/state.py909 def _update_voice_channel(self, channel_id: int | None) -> None:CODE
LOWdiscord/voice/utils/buffer.py114 def _update_has_item(self) -> None:CODE
LOWdiscord/voice/receive/reader.py107 def update_secret_key(self, secret_key: bytes) -> None:CODE
LOWdiscord/voice/receive/reader.py352 def update_secret_key(self, secret_key: bytes) -> None:CODE
LOWdiscord/voice/receive/router.py88 def set_sink(self, sink: Sink) -> None:CODE
LOWdiscord/voice/receive/router.py92 def set_user_id(self, ssrc: int, user_id: int) -> None:CODE
LOWdiscord/voice/receive/router.py158 def set_sink(self, sink: Sink) -> None:CODE
Slop Phrases5 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMexamples/custom_context.py66 # With your new helper function, you can add aCOMMENT
MEDIUMexamples/views/dropdown.py9 # For example, you can use self.bot to retrieve a user or perform other functions in the callback.COMMENT
MEDIUMexamples/views/dropdown.py10 # Alternatively you can use Interaction.client, so you don't need to pass the bot instance.COMMENT
MEDIUMexamples/app_commands/slash_basic.py13# Note: If you want you can use commands.Bot instead of discord.Bot.COMMENT
MEDIUMexamples/app_commands/slash_basic.py16# With discord.Bot you can use @bot.command as an aliasCOMMENT
AI Slop Vocabulary8 hits · 9 pts
SeverityFileLineSnippetContext
LOWdiscord/enums.py142 # Special case classmethod to just pass throughCOMMENT
LOWdiscord/message.py1283 # didn't find anything so just returnSTRING
LOWdiscord/message.py1899 # don't want it to remove any attachments when we just add a new fileSTRING
LOWdiscord/http.py334 # the request was successful so just return the text/jsonCOMMENT
LOWdiscord/ext/commands/core.py1203 # since we have no checks, then we just return True.COMMENT
LOWdiscord/commands/core.py453 # since we have no checks, then we just return True.COMMENT
LOWdiscord/commands/core.py1066 # We couldn't resolve the object, so we just return an empty objectSTRING
LOWexamples/converters.py57 # Otherwise, we just return the converted member value.COMMENT
Fake / Example Data9 hits · 9 pts
SeverityFileLineSnippetContext
LOWdiscord/components.py272 "placeholder",CODE
LOWdiscord/components.py289 self.placeholder: str | None = data.get("placeholder", None)CODE
LOWdiscord/components.py305 payload["placeholder"] = self.placeholderCODE
LOWdiscord/components.py457 "placeholder",CODE
LOWdiscord/components.py474 self.placeholder: str | None = data.get("placeholder")CODE
LOWdiscord/components.py504 payload["placeholder"] = self.placeholderCODE
LOWdiscord/ui/input_text.py79 "placeholder",CODE
LOWdiscord/ui/select.py174 "placeholder",CODE
LOWdiscord/ui/select.py1014 "placeholder": placeholder,CODE
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml41 rev: v1.1.3COMMENT
LOW.pre-commit-config.yaml61 # name: pylintCOMMENT
LOWdiscord/permissions.py301COMMENT
LOWexamples/converters.py81@bot.command()COMMENT
LOW.github/workflows/release.yml81 # v_rule_id: ${{ steps.get_rule_ids.outputs.v_rule_id }}COMMENT
LOW.github/workflows/release.yml261 env:COMMENT
LOW.github/workflows/release.yml321# uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6COMMENT
LOW.github/workflows/release.yml341# if: always()COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHexamples/converters.py47 # In this example we have made a custom converter.COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdiscord/opus.py610 self._buffer.push(packet)CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWdiscord/ui/core.py99 # Check if we've elapsed our currently set timeoutCOMMENT
LOWdiscord/ext/commands/help.py873 # Check if it's a cogCOMMENT
LOWexamples/views/button_roles.py79 # Loop through the list of roles and add a new button to the view for each role.COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/views/tic_tac_toe.py117 # If we're here, we need to check if a tie has been reached.COMMENT
Structural Annotation Overuse1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/audio_recording_merged.py81 sync_start=True, # WARNING: This feature is very unstable and may break at any time.CODE
TODO Padding1 hit · 0 pts
SeverityFileLineSnippetContext
LOWdiscord/message.py1349 # TODO: consider adding to cache hereSTRING