AI Slop Code RIsk Monitor

Rapptz/discord.py

An API wrapper for Discord written in Python.

25.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for Rapptz/discord.py, a Python project with 16,195 GitHub stars. SynthScan examined 100,762 lines of code across 228 source files, recording 1254 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 25.6 (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.

25.6
Adjusted Signal
25.6
Raw Pattern Score
100%
Time Factor
2026-09-07
Last Push
16.2K
Stars
Python
Language
100.8K
Lines of Code
228
Files
1.3K
Pattern Hits
2026-10-12
Scan Date
1.44
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 25.0/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 12.9/100 · LOW

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

Agent Over-Engineering Ratio 64.7/100 · HIGH

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

PR Review Velocity Impact 76.9/100 · CRITICAL

Which changes need focused human review? 1254 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 329MEDIUM 26LOW 899

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 1254 distinct pattern matches across 17 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 Repetition201 hits · 1005 pts
SeverityFileLineSnippetContext
HIGHdiscord/sku.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/user.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/mixins.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/_types.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/sticker.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/gateway.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/enums.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/widget.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/subscription.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/asset.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/object.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/emoji.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/oggparse.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/onboarding.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/appinfo.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/flags.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/client.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/invite.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/channel.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/member.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/activity.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/partial_emoji.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/message.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/role.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/welcome_screen.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/team.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/scheduled_event.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/backoff.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/shard.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/file.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/threads.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/context_managers.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/utils.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/player.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/primary_guild.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/http.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/opus.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/template.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/permissions.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/automod.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/soundboard.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/mentions.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/errors.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/interactions.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/embeds.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/poll.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/components.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/stage_instance.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/voice_client.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/audit_logs.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/colour.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/integrations.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/__main__.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/presences.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/guild.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/state.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/raw_models.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/collectible.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/reaction.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
HIGHdiscord/abc.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obtaSTRING
141 more matches not shown…
Empty Error Handlers125 hits · 625 pts
SeverityFileLineSnippetContext
HIGHsetup.py26except Exception:CODE
HIGHdiscord/sticker.py482except TypeError:CODE
HIGHdiscord/gateway.py49except ImportError:CODE
HIGHdiscord/voice_state.py106except ValueError:CODE
HIGHdiscord/voice_state.py547except asyncio.CancelledError:CODE
HIGHdiscord/appinfo.py644except KeyError:CODE
HIGHdiscord/client.py509except asyncio.CancelledError:CODE
HIGHdiscord/client.py563except AttributeError:CODE
HIGHdiscord/client.py514except asyncio.CancelledError:CODE
HIGHdiscord/channel.py2756except KeyError:CODE
HIGHdiscord/channel.py2763except KeyError:CODE
HIGHdiscord/channel.py2775except KeyError:CODE
HIGHdiscord/channel.py2784except KeyError:CODE
HIGHdiscord/channel.py2794except KeyError:CODE
HIGHdiscord/channel.py2858except (KeyError, IndexError, ValueError):CODE
HIGHdiscord/member.py426except KeyError:CODE
HIGHdiscord/member.py431except KeyError:CODE
HIGHdiscord/member.py1183except ValueError:CODE
HIGHdiscord/message.py874except KeyError:CODE
HIGHdiscord/message.py880except KeyError:CODE
HIGHdiscord/message.py890except KeyError:CODE
HIGHdiscord/message.py896except KeyError:CODE
HIGHdiscord/message.py902except KeyError:CODE
HIGHdiscord/message.py2228except KeyError:CODE
HIGHdiscord/message.py2257except KeyError:CODE
HIGHdiscord/message.py2265except KeyError:CODE
HIGHdiscord/message.py2305except KeyError:CODE
HIGHdiscord/message.py2313except KeyError:CODE
HIGHdiscord/message.py2321except KeyError:CODE
HIGHdiscord/message.py2341except KeyError:CODE
HIGHdiscord/message.py2242except KeyError:CODE
HIGHdiscord/message.py2278except KeyError:CODE
HIGHdiscord/message.py2411except AttributeError:CODE
HIGHdiscord/message.py1303except HTTPException:CODE
HIGHdiscord/threads.py218except KeyError:CODE
HIGHdiscord/threads.py227except KeyError:CODE
HIGHdiscord/context_managers.py48except (asyncio.CancelledError, Exception):CODE
HIGHdiscord/utils.py1415except ValueError:CODE
HIGHdiscord/utils.py1179except ValueError:CODE
HIGHdiscord/player.py896except Exception:CODE
HIGHdiscord/player.py270except Exception:CODE
HIGHdiscord/http.py115except KeyError:CODE
HIGHdiscord/http.py628except KeyError:CODE
HIGHdiscord/opus.py214except KeyError:CODE
HIGHdiscord/interactions.py285except KeyError:CODE
HIGHdiscord/interactions.py293except KeyError:CODE
HIGHdiscord/interactions.py1113except HTTPException:CODE
HIGHdiscord/interactions.py1259except HTTPException:CODE
HIGHdiscord/interactions.py1649except HTTPException:CODE
HIGHdiscord/embeds.py247except KeyError:CODE
HIGHdiscord/embeds.py252except KeyError:CODE
HIGHdiscord/embeds.py276except (AttributeError, KeyError):CODE
HIGHdiscord/embeds.py283except AttributeError:CODE
HIGHdiscord/embeds.py411except AttributeError:CODE
HIGHdiscord/embeds.py580except AttributeError:CODE
HIGHdiscord/embeds.py698except (AttributeError, IndexError):CODE
HIGHdiscord/embeds.py754except KeyError:CODE
HIGHdiscord/embeds.py762except KeyError:CODE
HIGHdiscord/embeds.py450except AttributeError:CODE
HIGHdiscord/embeds.py493except AttributeError:CODE
65 more matches not shown…
Hyper-Verbose Identifiers283 hits · 278 pts
SeverityFileLineSnippetContext
LOWdiscord/voice_state.py268 def max_dave_protocol_version(self) -> int:CODE
LOWdiscord/voice_state.py293 async def _recover_from_invalid_commit(self, transition_id: int) -> None:CODE
LOWdiscord/asset.py299 def _from_scheduled_event_cover_image(cls, state: _State, scheduled_event_id: int, cover_image_hash: str) -> Self:CODE
LOW⚡discord/flags.py340 def guild_reminder_notifications(self):CODE
LOW⚡discord/flags.py348 def join_notification_replies(self):CODE
LOW⚡discord/flags.py357 def role_subscription_purchase_notifications(self):CODE
LOW⚡discord/flags.py366 def role_subscription_purchase_notification_replies(self):CODE
LOWdiscord/flags.py506 def failed_to_mention_some_roles_in_thread(self):CODE
LOWdiscord/flags.py690 def early_verified_bot_developer(self):CODE
LOWdiscord/flags.py698 def discord_certified_moderator(self):CODE
LOWdiscord/flags.py1317 def auto_moderation_configuration(self):CODE
LOWdiscord/flags.py1331 def auto_moderation_execution(self):CODE
LOWdiscord/flags.py1650 def gateway_guild_members_limited(self):STRING
LOWdiscord/flags.py1657 def verification_pending_guild_limit(self):STRING
LOWdiscord/flags.py1675 def gateway_message_content_limited(self):CODE
LOWdiscord/flags.py1773 def hide_media_download_options(self):CODE
LOW⚡discord/flags.py2142 def automod_quarantined_username(self):CODE
LOW⚡discord/flags.py2151 def automod_quarantined_guild_tag(self):CODE
LOW⚡discord/flags.py2160 def dm_settings_upsell_acknowledged(self):CODE
LOWdiscord/client.py586 async def _call_before_identify_hook(self, shard_id: Optional[int], *, initial: bool = False) -> None:CODE
LOWdiscord/client.py3023 async def fetch_premium_sticker_packs(self) -> List[StickerPack]:CODE
LOWdiscord/client.py3043 async def fetch_premium_sticker_pack(self, sticker_pack_id: int, /) -> StickerPack:CODE
LOWdiscord/client.py3070 async def fetch_soundboard_default_sounds(self) -> List[SoundboardDefaultSound]:CODE
LOWdiscord/channel.py403 def _scheduled_event_entity_type(self) -> Optional[EntityType]:CODE
LOWdiscord/channel.py1540 def _scheduled_event_entity_type(self) -> Optional[EntityType]:CODE
LOWdiscord/channel.py1772 def _scheduled_event_entity_type(self) -> Optional[EntityType]:CODE
LOWdiscord/channel.py2075 def _scheduled_event_entity_type(self) -> Optional[EntityType]:CODE
LOWdiscord/channel.py2526 def _scheduled_event_entity_type(self) -> Optional[EntityType]:CODE
LOWdiscord/channel.py3668def _threaded_channel_factory(channel_type: int):CODE
LOWdiscord/channel.py3675def _threaded_guild_channel_factory(channel_type: int):CODE
LOWdiscord/partial_emoji.py180 def _to_onboarding_prompt_option_payload(self) -> Dict[str, Any]:CODE
LOWdiscord/message.py914 def original_response_message(self) -> Optional[Message]:CODE
LOWdiscord/message.py1968 def to_message_reference_dict(self) -> MessageReferencePayload:CODE
LOWdiscord/message.py2509 def _handle_interaction_metadata(self, data: MessageInteractionMetadataPayload):STRING
LOWdiscord/message.py2516 def _rebind_cached_references(STRING
LOWdiscord/role.py109 def is_available_for_purchase(self) -> bool:CODE
LOWdiscord/shard.py455 async def fetch_session_start_limits(self) -> SessionStartLimits:CODE
LOWdiscord/utils.py1125def normalise_optional_params(parameters: Iterable[Any]) -> Tuple[Any, ...]:STRING
LOWdiscord/player.py217 def _check_process_returncode(self) -> None:CODE
LOWdiscord/http.py141def handle_message_parameters(CODE
LOWdiscord/http.py576 def _try_clear_expired_ratelimits(self) -> None:CODE
LOWdiscord/http.py1236 def edit_voice_channel_status(CODE
LOWdiscord/http.py1298 def start_thread_with_message(CODE
LOWdiscord/http.py1319 def start_thread_without_message(CODE
LOWdiscord/http.py1370 def get_public_archived_threads(CODE
LOWdiscord/http.py1381 def get_private_archived_threads(CODE
LOWdiscord/http.py1392 def get_joined_private_archived_threads(CODE
LOWdiscord/http.py1665 def list_premium_sticker_packs(self) -> Response[sticker.ListPremiumStickerPacks]:CODE
LOWdiscord/http.py1994 def delete_channel_permissions(CODE
LOWdiscord/http.py2066 def create_guild_scheduled_event(CODE
LOWdiscord/http.py2163 def get_scheduled_event_users(CODE
LOWdiscord/http.py2174 def get_scheduled_event_users(CODE
LOWdiscord/http.py2185 def get_scheduled_event_users(CODE
LOWdiscord/http.py2195 def get_scheduled_event_users(CODE
LOWdiscord/http.py2273 def bulk_upsert_global_commands(CODE
LOWdiscord/http.py2358 def bulk_upsert_guild_commands(CODE
LOWdiscord/http.py2372 def get_guild_application_command_permissions(CODE
LOWdiscord/http.py2385 def get_application_command_permissions(CODE
LOWdiscord/http.py2400 def edit_application_command_permissions(CODE
LOWdiscord/http.py2416 def get_auto_moderation_rules(self, guild_id: Snowflake) -> Response[List[automod.AutoModerationRule]]:CODE
223 more matches not shown…
Unused Imports285 hits · 265 pts
SeverityFileLineSnippetContext
LOWdiscord/sku.py25CODE
LOWdiscord/user.py25CODE
LOWdiscord/_types.py25CODE
LOWdiscord/sticker.py25CODE
LOWdiscord/gateway.py25CODE
LOWdiscord/enums.py25CODE
LOWdiscord/widget.py25CODE
LOWdiscord/voice_state.py40CODE
LOWdiscord/subscription.py25CODE
LOWdiscord/asset.py25CODE
LOWdiscord/object.py25CODE
LOWdiscord/emoji.py25CODE
LOWdiscord/oggparse.py25CODE
LOWdiscord/onboarding.py25CODE
LOWdiscord/appinfo.py25CODE
LOWdiscord/flags.py25CODE
LOWdiscord/client.py25CODE
LOWdiscord/client.py62CODE
LOWdiscord/client.py65CODE
LOWdiscord/invite.py25CODE
LOWdiscord/channel.py25CODE
LOWdiscord/member.py25CODE
LOWdiscord/activity.py25CODE
LOWdiscord/partial_emoji.py25CODE
LOWdiscord/__init__.py23CODE
LOWdiscord/__init__.py24CODE
LOWdiscord/__init__.py25CODE
LOWdiscord/__init__.py26CODE
LOWdiscord/__init__.py27CODE
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__.py48CODE
LOWdiscord/__init__.py48CODE
LOWdiscord/__init__.py48CODE
LOWdiscord/__init__.py55CODE
LOWdiscord/__init__.py56CODE
LOWdiscord/__init__.py57CODE
LOWdiscord/__init__.py58CODE
LOWdiscord/__init__.py59CODE
LOWdiscord/__init__.py60CODE
LOWdiscord/__init__.py61CODE
225 more matches not shown…
AI Structural Patterns108 hits · 98 pts
SeverityFileLineSnippetContext
LOWdiscord/gateway.py364CODE
LOWdiscord/appinfo.py299CODE
LOWdiscord/client.py2840CODE
LOWdiscord/channel.py465CODE
LOWdiscord/channel.py641CODE
LOWdiscord/channel.py1285CODE
LOWdiscord/channel.py1555CODE
LOWdiscord/channel.py1917CODE
LOWdiscord/channel.py2650CODE
LOWdiscord/channel.py2864CODE
LOWdiscord/channel.py2882CODE
LOWdiscord/channel.py2904CODE
LOWdiscord/member.py806CODE
LOWdiscord/message.py352CODE
LOWdiscord/message.py1737CODE
LOWdiscord/message.py1752CODE
LOWdiscord/message.py1767CODE
LOWdiscord/message.py1787CODE
LOWdiscord/message.py1807CODE
LOWdiscord/message.py1827CODE
LOWdiscord/message.py1966CODE
LOWdiscord/message.py2868CODE
LOWdiscord/role.py453CODE
LOWdiscord/scheduled_event.py302CODE
LOWdiscord/scheduled_event.py316CODE
LOWdiscord/scheduled_event.py332CODE
LOWdiscord/scheduled_event.py348CODE
LOWdiscord/scheduled_event.py363CODE
LOWdiscord/scheduled_event.py377CODE
LOWdiscord/threads.py500CODE
LOWdiscord/threads.py582CODE
LOWdiscord/http.py141CODE
LOWdiscord/http.py1848CODE
LOWdiscord/http.py2478CODE
LOWdiscord/automod.py457CODE
LOWdiscord/interactions.py955CODE
LOWdiscord/interactions.py973CODE
LOWdiscord/interactions.py1120CODE
LOWdiscord/interactions.py1467CODE
LOWdiscord/interactions.py1480CODE
LOWdiscord/guild.py1403CODE
LOWdiscord/guild.py1545CODE
LOWdiscord/guild.py1646CODE
LOWdiscord/guild.py1804CODE
LOWdiscord/guild.py2000CODE
LOWdiscord/guild.py3282CODE
LOWdiscord/guild.py3635CODE
LOWdiscord/guild.py3650CODE
LOWdiscord/guild.py3664CODE
LOWdiscord/abc.py169CODE
LOWdiscord/abc.py1274CODE
LOWdiscord/abc.py1414CODE
LOWdiscord/abc.py1429CODE
LOWdiscord/abc.py1444CODE
LOWdiscord/abc.py1464CODE
LOWdiscord/abc.py1484CODE
LOWdiscord/abc.py1504CODE
LOWdiscord/abc.py1523CODE
LOWdiscord/webhook/sync.py878CODE
LOWdiscord/webhook/sync.py896CODE
48 more matches not shown…
Deep Nesting87 hits · 79 pts
SeverityFileLineSnippetContext
LOWdiscord/gateway.py157CODE
LOWdiscord/gateway.py644CODE
LOWdiscord/gateway.py996CODE
LOWdiscord/gateway.py1047CODE
LOWdiscord/gateway.py1165CODE
LOWdiscord/enums.py509CODE
LOWdiscord/voice_state.py148CODE
LOWdiscord/voice_state.py378CODE
LOWdiscord/voice_state.py667CODE
LOWdiscord/appinfo.py299CODE
LOWdiscord/client.py528CODE
LOWdiscord/client.py695CODE
LOWdiscord/channel.py3638CODE
LOWdiscord/channel.py979CODE
LOWdiscord/channel.py2672CODE
LOWdiscord/channel.py3120CODE
LOWdiscord/activity.py871CODE
LOWdiscord/activity.py793CODE
LOWdiscord/message.py2193CODE
LOWdiscord/role.py613CODE
LOWdiscord/scheduled_event.py377CODE
LOWdiscord/shard.py519CODE
LOWdiscord/utils.py623CODE
LOWdiscord/utils.py1130CODE
LOWdiscord/utils.py1488CODE
LOWdiscord/player.py784CODE
LOWdiscord/http.py141CODE
LOWdiscord/http.py459CODE
LOWdiscord/http.py592CODE
LOWdiscord/automod.py251CODE
LOWdiscord/automod.py297CODE
LOWdiscord/soundboard.py235CODE
LOWdiscord/interactions.py215CODE
LOWdiscord/components.py1750CODE
LOWdiscord/audit_logs.py281CODE
LOWdiscord/audit_logs.py376CODE
LOWdiscord/audit_logs.py508CODE
LOWdiscord/audit_logs.py706CODE
LOWdiscord/__main__.py291CODE
LOWdiscord/guild.py2000CODE
LOWdiscord/guild.py3282CODE
LOWdiscord/state.py606CODE
LOWdiscord/state.py869CODE
LOWdiscord/state.py1663CODE
LOWdiscord/state.py1705CODE
LOWdiscord/state.py1900CODE
LOWdiscord/abc.py478CODE
LOWdiscord/abc.py1146CODE
LOWdiscord/abc.py1902CODE
LOWdiscord/webhook/sync.py115CODE
LOWdiscord/webhook/async_.py547CODE
LOWdiscord/webhook/async_.py130CODE
LOWdiscord/ui/view.py101CODE
LOWdiscord/ui/view.py114CODE
LOWdiscord/ui/view.py386CODE
LOWdiscord/ui/view.py745CODE
LOWdiscord/ui/view.py847CODE
LOWdiscord/ui/modal.py176CODE
LOWdiscord/ui/select.py133CODE
LOWdiscord/ext/tasks/__init__.py208CODE
27 more matches not shown…
Excessive Try-Catch Wrapping68 hits · 70 pts
SeverityFileLineSnippetContext
LOWsetup.py26 except Exception:CODE
LOWdiscord/gateway.py166 except Exception:CODE
LOWdiscord/gateway.py195 except Exception:CODE
LOWdiscord/gateway.py619 except Exception as exc:CODE
LOWdiscord/gateway.py1078 except Exception:CODE
LOWdiscord/gateway.py1088 except Exception:CODE
LOWdiscord/voice_state.py141 except Exception:CODE
LOWdiscord/voice_state.py175 except Exception:CODE
LOWdiscord/voice_state.py463 except Exception:CODE
LOWdiscord/voice_state.py516 except Exception:CODE
LOWdiscord/voice_state.py563 except Exception:CODE
LOWdiscord/oggparse.py69 except Exception:CODE
LOWdiscord/client.py511 except Exception:CODE
LOWdiscord/client.py542 except Exception as exc:CODE
LOWdiscord/shard.py184 except Exception as e:CODE
LOWdiscord/shard.py211 except Exception as e:CODE
LOWdiscord/shard.py225 except Exception as e:CODE
LOWdiscord/shard.py486 except Exception:CODE
LOWdiscord/player.py174 except Exception:CODE
LOWdiscord/player.py236 except Exception:CODE
LOW⚡discord/player.py257 except Exception:CODE
LOW⚡discord/player.py262 except Exception:CODE
LOW⚡discord/player.py270 except Exception:CODE
LOWdiscord/player.py294 except Exception:CODE
LOWdiscord/player.py306 except Exception:CODE
LOWdiscord/player.py313 except Exception:CODE
LOWdiscord/player.py838 except Exception as exc:CODE
LOWdiscord/player.py851 except Exception as exc:CODE
LOW⚡discord/player.py889 except Exception:CODE
LOW⚡discord/player.py896 except Exception:CODE
MEDIUMdiscord/player.py835def run(self) -> None:CODE
LOWdiscord/opus.py238 except Exception:CODE
LOWdiscord/__main__.py85 except Exception as exc:CODE
LOWdiscord/state.py170 except Exception:CODE
LOWdiscord/state.py288 except Exception:CODE
LOWdiscord/abc.py2156 except Exception:STRING
LOWdiscord/ui/view.py599 except Exception as e:CODE
LOWdiscord/ui/view.py1011 except Exception:CODE
LOWdiscord/ui/view.py1030 except Exception:CODE
LOWdiscord/ui/view.py1038 except Exception:CODE
LOWdiscord/ui/modal.py217 except Exception as e:CODE
LOWdiscord/ext/tasks/__init__.py276 except Exception as exc:CODE
LOWdiscord/ext/commands/hybrid.py211 except Exception as exc:CODE
LOWdiscord/ext/commands/hybrid.py225 except Exception as exc:CODE
LOWdiscord/ext/commands/flags.py412 except Exception as e:CODE
LOWdiscord/ext/commands/flags.py435 except Exception as e:CODE
LOWdiscord/ext/commands/flags.py473 except Exception as e:CODE
LOWdiscord/ext/commands/converter.py763 except Exception as exc:CODE
LOWdiscord/ext/commands/converter.py1358 except Exception as exc:STRING
LOWdiscord/ext/commands/converter.py1365 except Exception as exc:STRING
LOWdiscord/ext/commands/core.py253 except Exception as exc:CODE
LOWdiscord/ext/commands/core.py273 except Exception as exc:CODE
LOWdiscord/ext/commands/bot.py248 except Exception:CODE
LOWdiscord/ext/commands/bot.py254 except Exception:CODE
LOWdiscord/ext/commands/bot.py946 except Exception:CODE
LOWdiscord/ext/commands/bot.py962 except Exception as e:CODE
LOWdiscord/ext/commands/bot.py974 except Exception as e:CODE
LOWdiscord/ext/commands/bot.py1144 except Exception:CODE
LOWdiscord/ext/commands/cog.py721 except Exception as e:CODE
LOWdiscord/ext/commands/cog.py781 except Exception:CODE
8 more matches not shown…
Self-Referential Comments15 hits · 43 pts
SeverityFileLineSnippetContext
MEDIUMdiscord/ext/commands/cooldowns.py176 """This class is a version of a semaphore.STRING
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMexamples/modals/report.py36# Define a modal dialog for reporting issues or feedbackCOMMENT
MEDIUMexamples/views/link.py24# Define a simple View that gives us a google link button.COMMENT
MEDIUMexamples/views/ephemeral.py23# Define a simple View that gives us a counter buttonCOMMENT
MEDIUMexamples/views/ephemeral.py25 # Define the actual buttonCOMMENT
MEDIUMexamples/views/ephemeral.py41# Define a View that will give us our own personal counter buttonCOMMENT
MEDIUMexamples/views/layout.py23# Define a LayoutView, which will allow us to add v2 components to it.COMMENT
MEDIUMexamples/views/persistent.py9# Define a simple View that persists between bot restartsCOMMENT
MEDIUMexamples/views/dropdown.py62 # Create the view containing our dropdownCOMMENT
MEDIUMexamples/views/embed_like.py18 # Create a session for making HTTP requests.COMMENT
MEDIUMexamples/views/counter.py23# Define a simple View that gives us a counter buttonCOMMENT
MEDIUMexamples/views/counter.py25 # Define the actual buttonCOMMENT
MEDIUMexamples/views/tic_tac_toe.py21 # This function is called whenever this particular button is pressedCOMMENT
MEDIUMexamples/views/confirm.py22# Define a simple View that gives us a confirmation menuCOMMENT
Modern Structural Boilerplate22 hits · 22 pts
SeverityFileLineSnippetContext
LOWdiscord/voice_state.py787 def _update_voice_channel(self, channel_id: Optional[int]) -> None:CODE
LOWdiscord/flags.py231 def _set_flag(self, o: int, toggle: bool) -> None:CODE
LOWdiscord/flags.py321 def _set_flag(self, o: int, toggle: bool) -> None:STRING
LOWdiscord/channel.py3400 def _update_group(self, data: GroupChannelPayload) -> None:CODE
LOWdiscord/member.py372 def _update_from_message(self, data: MemberPayload) -> None:CODE
LOW⚡discord/player.py880 def set_source(self, source: AudioSource) -> None:CODE
LOW⚡discord/opus.py387 def set_bandwidth(self, req: BAND_CTL) -> None:CODE
LOW⚡discord/opus.py394 def set_signal_type(self, req: SIGNAL_CTL) -> None:CODE
LOW⚡discord/opus.py401 def set_fec(self, enabled: bool = True) -> None:CODE
LOW⚡discord/opus.py404 def set_expected_packet_loss_percent(self, percentage: float) -> None:CODE
LOWdiscord/poll.py162 def _update_with_results(self, payload: PollAnswerCountPayload) -> None:CODE
LOWdiscord/poll.py401 def _update_results_from_message(self, message: Message) -> None:CODE
LOWdiscord/poll.py427 def _update_results(self, data: PollResultPayload) -> None:CODE
LOWdiscord/state.py380 def _update_references(self, ws: DiscordWebSocket) -> None:CODE
LOWdiscord/state.py558 def _update_poll_results(self, from_: Message, to: Union[Message, int]) -> None:CODE
LOWdiscord/state.py1853 def _update_message_references(self) -> None:CODE
LOWdiscord/ui/section.py144 def _update_view(self, view) -> None:CODE
LOWdiscord/ui/view.py1105 def update_from_message(self, message_id: int, data: List[ComponentBasePayload]) -> None:CODE
LOWdiscord/ui/action_row.py170 def _update_view(self, view) -> None:STRING
LOWdiscord/ui/item.py206 def _update_view(self, view) -> None:CODE
LOWdiscord/app_commands/tree.py1032 async def set_translator(self, translator: Optional[Translator]) -> None:CODE
LOWdiscord/app_commands/namespace.py261 def _update_with_defaults(self, defaults: Iterable[Tuple[str, Any]]) -> None:CODE
Redundant / Tautological Comments17 hits · 19 pts
SeverityFileLineSnippetContext
LOWdiscord/player.py804 # Check if the source has an error (e.g., from FFmpegAudio process failure)COMMENT
LOWdiscord/http.py465 # Check if we can pre-emptively block this request for having too large of a timeoutCOMMENT
LOWdiscord/ui/view.py296 # Check if we've elapsed our currently set timeoutCOMMENT
LOWdiscord/ext/commands/help.py982 # Check if it's a cogCOMMENT
LOWdiscord/app_commands/transformers.py810 # Check if a transform @classmethod is given to the classCOMMENT
LOWdiscord/app_commands/transformers.py821 # Check if there's an originCOMMENT
LOWdiscord/app_commands/transformers.py911 # Check if the method is overriddenCOMMENT
LOWdiscord/app_commands/commands.py262 # Check if there's an originCOMMENT
LOWdiscord/app_commands/commands.py831 # Check if the on_error is overriddenCOMMENT
LOWdiscord/app_commands/commands.py839 # Check if we have a bound error handlerCOMMENT
LOWdiscord/app_commands/commands.py2546 # Check if called with parentheses or notSTRING
LOWdiscord/app_commands/commands.py2599 # Check if called with parentheses or notSTRING
LOWdiscord/app_commands/commands.py2649 # Check if called with parentheses or notSTRING
LOWdiscord/app_commands/commands.py2743 # Check if called with parentheses or notSTRING
LOWdiscord/app_commands/commands.py2792 # Check if called with parentheses or notSTRING
LOWexamples/reaction_roles.py28 # Check if we're still in the guild and it's cached.COMMENT
LOWexamples/reaction_roles.py60 # Check if we're still in the guild and it's cached.COMMENT
Slop Phrases6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMdiscord/ui/container.py91 # or you can use your subclass:COMMENT
MEDIUMdiscord/ui/action_row.py106 # or you can use your subclass:COMMENT
MEDIUMdiscord/ui/action_row.py109 # you can add items with row.button and row.selectCOMMENT
MEDIUMexamples/custom_context.py47 # with your new helper function, you can add aCOMMENT
MEDIUMexamples/views/layout.py25 # you can add any top-level component (ui.ActionRow, ui.Section, ui.Container, ui.File, etc.) hereCOMMENT
MEDIUMexamples/views/embed_like.py106 # If you want the "embed" to have multiple images you can add a MediaGallery itemCOMMENT
AI Slop Vocabulary8 hits · 15 pts
SeverityFileLineSnippetContext
LOWdiscord/enums.py136 # Special case classmethod to just pass throughCOMMENT
MEDIUMdiscord/__init__.py94# Essentially forcing the exception to have different base classesCOMMENT
LOWdiscord/message.py2388 # didn't find anything so just returnSTRING
LOWdiscord/http.py708 # the request was successful so just return the text/jsonCOMMENT
LOWdiscord/ext/commands/core.py1320 # since we have no checks, then we just return True.COMMENT
MEDIUMdiscord/app_commands/translator.py111# For type checking purposes, it makes sense to allow the user to leverage type narrowingCOMMENT
LOWexamples/converters.py64 # Otherwise, we just return the converted member value.COMMENT
MEDIUMexamples/views/dynamic_counter.py8# with state changes or dynamic items. In order to facilitate these complicated use cases,COMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHexamples/converters.py54 # In this example we have made a custom converter.COMMENT
HIGHexamples/app_commands/basic.py61# In this example, even though we use `text_to_send` in the code, the client will use `text` instead.COMMENT
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippetContext
LOWdiscord/ext/tasks/__init__.py661 def _start_time_relative_to(self, now: datetime.datetime) -> Optional[int]:COMMENT
LOWdiscord/ext/commands/help.py101FuncT = TypeVar('FuncT', bound=Callable[..., Any])COMMENT
LOWdiscord/app_commands/commands.py861COMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py101COMMENT
LOWdocs/conf.py121# List of patterns, relative to source directory, that match files andCOMMENT
LOWdocs/conf.py201COMMENT
LOWdocs/conf.py221# Add any paths that contain custom static files (such as style sheets) here,COMMENT
LOWdocs/conf.py241COMMENT
LOWdocs/conf.py261# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.COMMENT
LOWdocs/conf.py321# the title page.COMMENT
LOWdocs/crowdin.yml1# -*- coding: utf-8 -*-COMMENT
LOWexamples/views/embed_like.py81 # A Section is a container that can hold 3 TextDisplay and an accessory.COMMENT
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWdiscord/components.py444 'placeholder',CODE
LOWdiscord/components.py460 self.placeholder: Optional[str] = data.get('placeholder')CODE
LOWdiscord/components.py484 payload['placeholder'] = self.placeholderCODE
LOWdiscord/components.py637 'placeholder',CODE
LOWdiscord/components.py651 self.placeholder: Optional[str] = data.get('placeholder')CODE
LOWdiscord/components.py676 payload['placeholder'] = self.placeholderCODE
LOWdiscord/components.py1010 'placeholder',CODE
LOWdiscord/components.py1046 self.placeholder = data.get('placeholder')CODE
LOWdiscord/ui/text_input.py111 'placeholder',CODE
LOWdiscord/ui/select.py218 'placeholder',CODE
LOWdiscord/ui/select.py226 'placeholder',CODE
LOWdiscord/ui/select.py1220 'placeholder': placeholder,CODE
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHdiscord/ext/commands/context.py281 raise RuntimeError('interaction channel ID is null, this is probably a Discord bug')STRING
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/views/tic_tac_toe.py117 # If we're here, we need to check if a tie was madeCOMMENT