AI Slop Code RIsk Monitor

Pycord-Development/pycord

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

24.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

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.

24.1
Adjusted Signal
24.1
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.0K
Stars
Python
Language
101.1K
Lines of Code
275
Files
1.2K
Pattern Hits
2026-10-12
Scan Date
1.12
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 20.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 436 finding(s).

Hallucinated Dependency & Supply Chain Risk 15.7/100 · LOW

Are imports declared and package/API names verified? 363 finding(s).

Agent Over-Engineering Ratio 61.2/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 713 finding(s).

PR Review Velocity Impact 75.0/100 · CRITICAL

Which changes need focused human review? 1206 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 307MEDIUM 32LOW 867

Directory Score Breakdown

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.

Pattern Findings

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.

Cross-File Repetition197 hits · 985 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
137 more matches not shown…
Empty Error Handlers108 hits · 540 pts
SeverityFileLineSnippetContext
HIGHdiscord/user.py606except Exception:CODE
HIGHdiscord/sticker.py510except TypeError:CODE
HIGHdiscord/client.py467except asyncio.CancelledError:CODE
HIGHdiscord/client.py526except AttributeError:CODE
HIGHdiscord/client.py858except (NotImplementedError, RuntimeError):CODE
HIGHdiscord/client.py795except Exception:CODE
HIGHdiscord/client.py1429except ValueError:CODE
HIGHdiscord/client.py472except asyncio.CancelledError:CODE
HIGHdiscord/member.py456except KeyError:CODE
HIGHdiscord/member.py461except KeyError:CODE
HIGHdiscord/member.py1294except ValueError:CODE
HIGHdiscord/message.py1234except KeyError:CODE
HIGHdiscord/message.py1151except KeyError:CODE
HIGHdiscord/shard.py495except Exception:CODE
HIGHdiscord/threads.py252except KeyError:CODE
HIGHdiscord/threads.py263except KeyError:CODE
HIGHdiscord/context_managers.py45except (asyncio.CancelledError, Exception):CODE
HIGHdiscord/bot.py1472except ValueError:CODE
HIGHdiscord/utils.py252except HTTPException:CODE
HIGHdiscord/utils.py1342except ValueError:CODE
HIGHdiscord/player.py941except Exception:CODE
HIGHdiscord/http.py114except KeyError:CODE
HIGHdiscord/http.py266except KeyError:CODE
HIGHdiscord/opus.py274except KeyError:CODE
HIGHdiscord/interactions.py289except KeyError:CODE
HIGHdiscord/interactions.py303except KeyError:CODE
HIGHdiscord/embeds.py436except KeyError:CODE
HIGHdiscord/embeds.py441except KeyError:CODE
HIGHdiscord/embeds.py487except (AttributeError, KeyError):CODE
HIGHdiscord/embeds.py494except AttributeError:CODE
HIGHdiscord/embeds.py611except AttributeError:CODE
HIGHdiscord/embeds.py685except AttributeError:CODE
HIGHdiscord/embeds.py759except AttributeError:CODE
HIGHdiscord/embeds.py864except AttributeError:CODE
HIGHdiscord/embeds.py981except IndexError:CODE
HIGHdiscord/embeds.py1046except KeyError:CODE
HIGHdiscord/embeds.py1054except KeyError:CODE
HIGHdiscord/embeds.py666except AttributeError:CODE
HIGHdiscord/embeds.py740except AttributeError:CODE
HIGHdiscord/cog.py785except AttributeError:CODE
HIGHdiscord/cog.py638except Exception:CODE
HIGHdiscord/cog.py790except Exception:CODE
HIGHdiscord/audit_logs.py698except AttributeError:CODE
HIGHdiscord/guild.py797except KeyError:CODE
HIGHdiscord/guild.py3090except TypeError:CODE
HIGHdiscord/state.py329except KeyError:CODE
HIGHdiscord/state.py337except KeyError:CODE
HIGHdiscord/state.py680except asyncio.CancelledError:CODE
HIGHdiscord/state.py1482except AttributeError:CODE
HIGHdiscord/state.py2258except AttributeError:CODE
HIGHdiscord/state.py677except AttributeError:CODE
HIGHdiscord/state.py701except KeyError:CODE
HIGHdiscord/state.py888except (AttributeError, ValueError): # eventual consistency lolCODE
HIGHdiscord/state.py906except (AttributeError, ValueError): # eventual consistency lolCODE
HIGHdiscord/state.py1567except KeyError:CODE
HIGHdiscord/state.py1887except KeyError:CODE
HIGHdiscord/state.py2279except KeyError:CODE
HIGHdiscord/abc.py421except KeyError:CODE
HIGHdiscord/abc.py428except KeyError:CODE
HIGHdiscord/abc.py433except KeyError:CODE
48 more matches not shown…
Unused Imports353 hits · 332 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
293 more matches not shown…
Hyper-Verbose Identifiers205 hits · 183 pts
SeverityFileLineSnippetContext
LOWdiscord/gateway.py770 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.py270 def guild_reminder_notifications(self):CODE
LOWdiscord/flags.py278 def join_notification_replies(self):CODE
LOWdiscord/flags.py390 def failed_to_mention_some_roles_in_thread(self):CODE
LOWdiscord/flags.py552 def early_verified_bot_developer(self):CODE
LOWdiscord/flags.py560 def discord_certified_moderator(self):CODE
LOWdiscord/flags.py1178 def auto_moderation_configuration(self):CODE
LOWdiscord/flags.py1190 def auto_moderation_execution(self):CODE
LOWdiscord/flags.py1471 def application_auto_moderation_rule_create_badge(self):CODE
LOWdiscord/flags.py1505 def gateway_guild_members_limited(self):CODE
LOWdiscord/flags.py1512 def verification_pending_guild_limit(self):CODE
LOWdiscord/flags.py1529 def gateway_message_content_limited(self):CODE
LOWdiscord/flags.py1614 def hide_media_download_options(self):CODE
LOWdiscord/client.py617 async def _call_before_identify_hook(CODE
LOWdiscord/client.py2002 async def fetch_premium_sticker_packs(self) -> list[StickerPack]:CODE
LOWdiscord/client.py2098 async def fetch_role_connection_metadata_records(CODE
LOWdiscord/client.py2117 async def update_role_connection_metadata_records(CODE
LOWdiscord/invite.py755 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.py1303def normalise_optional_params(parameters: Iterable[Any]) -> tuple[Any, ...]:STRING
LOWdiscord/utils.py1602def get_missing_voice_dependencies() -> tuple[str, ...]:STRING
LOWdiscord/utils.py1617def 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
145 more matches not shown…
AI Structural Patterns101 hits · 97 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.py1465CODE
LOWdiscord/guild.py1598CODE
LOWdiscord/guild.py1707CODE
LOWdiscord/guild.py1832CODE
LOWdiscord/guild.py2083CODE
LOWdiscord/guild.py3360CODE
LOWdiscord/guild.py3376CODE
LOWdiscord/guild.py3391CODE
LOWdiscord/scheduled_events.py278CODE
LOWdiscord/abc.py124CODE
LOWdiscord/abc.py1209CODE
LOWdiscord/abc.py1374CODE
LOWdiscord/abc.py1396CODE
LOWdiscord/abc.py1418CODE
LOWdiscord/abc.py1440CODE
LOWdiscord/abc.py1461CODE
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 · 90 pts
SeverityFileLineSnippetContext
LOWdiscord/user.py606 except Exception:CODE
MEDIUMdiscord/user.py602def __del__(self) -> None:CODE
LOWdiscord/gateway.py205 except Exception:CODE
LOWdiscord/gateway.py593 except Exception as exc:CODE
LOWdiscord/oggparse.py75 except Exception:CODE
LOWdiscord/client.py469 except Exception:CODE
LOWdiscord/client.py504 except Exception as exc:CODE
LOWdiscord/client.py795 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.py151 except Exception:CODE
LOWdiscord/abc.py2093 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
MEDIUMdiscord/ext/commands/core.py161def wrapped(*args, **kwargs):CODE
MEDIUMdiscord/ext/commands/core.py177def wrapped(*args, **kwargs):CODE
LOWdiscord/ext/commands/core.py168 except Exception as exc:CODE
LOWdiscord/ext/commands/core.py186 except Exception as exc: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.py262 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
LOW⚡discord/voice/receive/reader.py136 except Exception as exc:CODE
22 more matches not shown…
Deep Nesting84 hits · 81 pts
SeverityFileLineSnippetContext
LOWdiscord/gateway.py157CODE
LOWdiscord/gateway.py626CODE
LOWdiscord/enums.py538CODE
LOWdiscord/asset.py384CODE
LOWdiscord/client.py490CODE
LOWdiscord/client.py683CODE
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.py619CODE
LOWdiscord/utils.py815CODE
LOWdiscord/utils.py1308CODE
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.py1832CODE
LOWdiscord/guild.py2083CODE
LOWdiscord/state.py632CODE
LOWdiscord/state.py1897CODE
LOWdiscord/state.py2179CODE
LOWdiscord/abc.py409CODE
LOWdiscord/abc.py1084CODE
LOWdiscord/abc.py1461CODE
LOWdiscord/abc.py1862CODE
LOWdiscord/webhook/sync.py104CODE
LOWdiscord/webhook/async_.py113CODE
LOWdiscord/ui/core.py118CODE
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.py301 """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
MEDIUM⚡examples/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 · 20 pts
SeverityFileLineSnippetContext
LOWdiscord/flags.py186 def _set_flag(self, o: int, toggle: bool) -> None:CODE
LOWdiscord/flags.py253 def _set_flag(self, o: int, toggle: bool) -> None:STRING
LOWdiscord/invite.py803 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
LOW⚡discord/opus.py443 def set_bandwidth(self, req: BAND_CTL) -> None:CODE
LOW⚡discord/opus.py453 def set_signal_type(self, req: SIGNAL_CTL) -> None:CODE
LOW⚡discord/opus.py463 def set_fec(self, enabled: bool = True) -> None:CODE
LOW⚡discord/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.py367 def _update_references(self, ws: DiscordWebSocket) -> None:CODE
LOWdiscord/state.py2149 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
MEDIUM⚡examples/app_commands/slash_basic.py13# Note: If you want you can use commands.Bot instead of discord.Bot.COMMENT
MEDIUM⚡examples/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.py452 # since we have no checks, then we just return True.COMMENT
LOWdiscord/commands/core.py1065 # 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.py98 # 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