Repository Analysis

Rapptz/discord.py

An API wrapper for Discord written in Python.

19.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Rapptz/discord.py, a Python project with 16,106 GitHub stars. SynthScan v2.0 examined 100,750 lines of code across 228 source files, recording 1129 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 19.6 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).

19.6
Adjusted Score
19.6
Raw Score
100%
Time Factor
2026-07-13
Last Push
16.1K
Stars
Python
Language
100.8K
Lines of Code
228
Files
1.1K
Pattern Hits
2026-07-14
Scan Date
0.89
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 204MEDIUM 26LOW 899

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 1129 distinct pattern matches across 16 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 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…
Hyper-Verbose Identifiers283 hits · 285 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
LOWdiscord/flags.py340 def guild_reminder_notifications(self):CODE
LOWdiscord/flags.py348 def join_notification_replies(self):CODE
LOWdiscord/flags.py357 def role_subscription_purchase_notifications(self):CODE
LOWdiscord/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
LOWdiscord/flags.py2142 def automod_quarantined_username(self):CODE
LOWdiscord/flags.py2151 def automod_quarantined_guild_tag(self):CODE
LOWdiscord/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 · 266 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 · 106 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 · 82 pts
SeverityFileLineSnippetContext
LOWdiscord/gateway.py157CODE
LOWdiscord/gateway.py632CODE
LOWdiscord/gateway.py984CODE
LOWdiscord/gateway.py1035CODE
LOWdiscord/gateway.py1153CODE
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 · 71 pts
SeverityFileLineSnippetContext
LOWsetup.py26 except Exception:CODE
LOWdiscord/gateway.py166 except Exception:CODE
LOWdiscord/gateway.py195 except Exception:CODE
LOWdiscord/gateway.py607 except Exception as exc:CODE
LOWdiscord/gateway.py1066 except Exception:CODE
LOWdiscord/gateway.py1076 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
LOWdiscord/player.py257 except Exception:CODE
LOWdiscord/player.py262 except Exception:CODE
LOWdiscord/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
LOWdiscord/player.py889 except Exception:CODE
LOWdiscord/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 · 23 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
LOWdiscord/player.py880 def set_source(self, source: AudioSource) -> None:CODE
LOWdiscord/opus.py387 def set_bandwidth(self, req: BAND_CTL) -> None:CODE
LOWdiscord/opus.py394 def set_signal_type(self, req: SIGNAL_CTL) -> None:CODE
LOWdiscord/opus.py401 def set_fec(self, enabled: bool = True) -> None:CODE
LOWdiscord/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 · 20 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 · 16 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