Repository Analysis

Rapptz/discord.py

An API wrapper for Discord written in Python.

17.7 Moderate AI signal View on GitHub
17.7
Adjusted Score
17.7
Raw Score
100%
Time Factor
2026-05-25
Last Push
16,073
Stars
Python
Language
100,432
Lines of Code
226
Files
967
Pattern Hits
2026-05-31
Scan Date

Score History

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

Severity Breakdown

CRITICAL 0HIGH 195MEDIUM 26LOW 746

Pattern Findings

967 matches across 12 categories. Click a row to expand file-level details.

Cross-File Repetition194 hits · 970 pts
SeverityFileLineSnippet
HIGHdiscord/sku.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/user.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/mixins.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/_types.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/sticker.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/gateway.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/enums.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/widget.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/subscription.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/asset.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/object.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/emoji.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/oggparse.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/onboarding.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/appinfo.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/flags.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/client.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/invite.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/channel.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/member.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/activity.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/partial_emoji.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/message.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/role.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/welcome_screen.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/team.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/scheduled_event.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/backoff.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/shard.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/file.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/threads.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/context_managers.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/utils.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/player.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/primary_guild.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/http.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/opus.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/template.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/permissions.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/automod.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/soundboard.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/mentions.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/errors.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/interactions.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/embeds.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/poll.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/components.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/stage_instance.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/voice_client.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/audit_logs.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/colour.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/integrations.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/__main__.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/presences.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/guild.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/state.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/raw_models.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/collectible.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/reaction.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
HIGHdiscord/abc.py0the mit license (mit) copyright (c) 2015-present rapptz permission is hereby granted, free of charge, to any person obta
134 more matches not shown…
Hyper-Verbose Identifiers273 hits · 276 pts
SeverityFileLineSnippet
LOWdiscord/voice_state.py268 def max_dave_protocol_version(self) -> int:
LOWdiscord/voice_state.py293 async def _recover_from_invalid_commit(self, transition_id: int) -> None:
LOWdiscord/asset.py299 def _from_scheduled_event_cover_image(cls, state: _State, scheduled_event_id: int, cover_image_hash: str) -> Self:
LOWdiscord/flags.py340 def guild_reminder_notifications(self):
LOWdiscord/flags.py348 def join_notification_replies(self):
LOWdiscord/flags.py357 def role_subscription_purchase_notifications(self):
LOWdiscord/flags.py366 def role_subscription_purchase_notification_replies(self):
LOWdiscord/flags.py506 def failed_to_mention_some_roles_in_thread(self):
LOWdiscord/flags.py690 def early_verified_bot_developer(self):
LOWdiscord/flags.py698 def discord_certified_moderator(self):
LOWdiscord/flags.py1317 def auto_moderation_configuration(self):
LOWdiscord/flags.py1331 def auto_moderation_execution(self):
LOWdiscord/flags.py1650 def gateway_guild_members_limited(self):
LOWdiscord/flags.py1657 def verification_pending_guild_limit(self):
LOWdiscord/flags.py1675 def gateway_message_content_limited(self):
LOWdiscord/flags.py1773 def hide_media_download_options(self):
LOWdiscord/flags.py2142 def automod_quarantined_username(self):
LOWdiscord/flags.py2151 def automod_quarantined_guild_tag(self):
LOWdiscord/flags.py2160 def dm_settings_upsell_acknowledged(self):
LOWdiscord/client.py586 async def _call_before_identify_hook(self, shard_id: Optional[int], *, initial: bool = False) -> None:
LOWdiscord/client.py3023 async def fetch_premium_sticker_packs(self) -> List[StickerPack]:
LOWdiscord/client.py3043 async def fetch_premium_sticker_pack(self, sticker_pack_id: int, /) -> StickerPack:
LOWdiscord/client.py3070 async def fetch_soundboard_default_sounds(self) -> List[SoundboardDefaultSound]:
LOWdiscord/channel.py403 def _scheduled_event_entity_type(self) -> Optional[EntityType]:
LOWdiscord/channel.py1540 def _scheduled_event_entity_type(self) -> Optional[EntityType]:
LOWdiscord/channel.py1772 def _scheduled_event_entity_type(self) -> Optional[EntityType]:
LOWdiscord/channel.py2075 def _scheduled_event_entity_type(self) -> Optional[EntityType]:
LOWdiscord/channel.py2527 def _scheduled_event_entity_type(self) -> Optional[EntityType]:
LOWdiscord/channel.py3669def _threaded_channel_factory(channel_type: int):
LOWdiscord/channel.py3676def _threaded_guild_channel_factory(channel_type: int):
LOWdiscord/partial_emoji.py180 def _to_onboarding_prompt_option_payload(self) -> Dict[str, Any]:
LOWdiscord/message.py914 def original_response_message(self) -> Optional[Message]:
LOWdiscord/message.py1968 def to_message_reference_dict(self) -> MessageReferencePayload:
LOWdiscord/message.py2509 def _handle_interaction_metadata(self, data: MessageInteractionMetadataPayload):
LOWdiscord/message.py2516 def _rebind_cached_references(
LOWdiscord/role.py109 def is_available_for_purchase(self) -> bool:
LOWdiscord/shard.py455 async def fetch_session_start_limits(self) -> SessionStartLimits:
LOWdiscord/utils.py1125def normalise_optional_params(parameters: Iterable[Any]) -> Tuple[Any, ...]:
LOWdiscord/player.py217 def _check_process_returncode(self) -> None:
LOWdiscord/http.py141def handle_message_parameters(
LOWdiscord/http.py573 def _try_clear_expired_ratelimits(self) -> None:
LOWdiscord/http.py1233 def edit_voice_channel_status(
LOWdiscord/http.py1295 def start_thread_with_message(
LOWdiscord/http.py1316 def start_thread_without_message(
LOWdiscord/http.py1367 def get_public_archived_threads(
LOWdiscord/http.py1378 def get_private_archived_threads(
LOWdiscord/http.py1389 def get_joined_private_archived_threads(
LOWdiscord/http.py1662 def list_premium_sticker_packs(self) -> Response[sticker.ListPremiumStickerPacks]:
LOWdiscord/http.py1991 def delete_channel_permissions(
LOWdiscord/http.py2063 def create_guild_scheduled_event(
LOWdiscord/http.py2160 def get_scheduled_event_users(
LOWdiscord/http.py2171 def get_scheduled_event_users(
LOWdiscord/http.py2182 def get_scheduled_event_users(
LOWdiscord/http.py2192 def get_scheduled_event_users(
LOWdiscord/http.py2270 def bulk_upsert_global_commands(
LOWdiscord/http.py2355 def bulk_upsert_guild_commands(
LOWdiscord/http.py2369 def get_guild_application_command_permissions(
LOWdiscord/http.py2382 def get_application_command_permissions(
LOWdiscord/http.py2397 def edit_application_command_permissions(
LOWdiscord/http.py2413 def get_auto_moderation_rules(self, guild_id: Snowflake) -> Response[List[automod.AutoModerationRule]]:
213 more matches not shown…
Unused Imports283 hits · 264 pts
SeverityFileLineSnippet
LOWdiscord/sku.py25
LOWdiscord/user.py25
LOWdiscord/_types.py25
LOWdiscord/sticker.py25
LOWdiscord/gateway.py25
LOWdiscord/enums.py25
LOWdiscord/widget.py25
LOWdiscord/voice_state.py40
LOWdiscord/subscription.py25
LOWdiscord/asset.py25
LOWdiscord/object.py25
LOWdiscord/emoji.py25
LOWdiscord/oggparse.py25
LOWdiscord/onboarding.py25
LOWdiscord/appinfo.py25
LOWdiscord/flags.py25
LOWdiscord/client.py25
LOWdiscord/client.py62
LOWdiscord/client.py65
LOWdiscord/invite.py25
LOWdiscord/channel.py25
LOWdiscord/member.py25
LOWdiscord/activity.py25
LOWdiscord/partial_emoji.py25
LOWdiscord/__init__.py23
LOWdiscord/__init__.py24
LOWdiscord/__init__.py25
LOWdiscord/__init__.py26
LOWdiscord/__init__.py27
LOWdiscord/__init__.py28
LOWdiscord/__init__.py29
LOWdiscord/__init__.py30
LOWdiscord/__init__.py31
LOWdiscord/__init__.py32
LOWdiscord/__init__.py33
LOWdiscord/__init__.py34
LOWdiscord/__init__.py35
LOWdiscord/__init__.py36
LOWdiscord/__init__.py37
LOWdiscord/__init__.py38
LOWdiscord/__init__.py39
LOWdiscord/__init__.py40
LOWdiscord/__init__.py41
LOWdiscord/__init__.py42
LOWdiscord/__init__.py43
LOWdiscord/__init__.py44
LOWdiscord/__init__.py45
LOWdiscord/__init__.py46
LOWdiscord/__init__.py47
LOWdiscord/__init__.py48
LOWdiscord/__init__.py48
LOWdiscord/__init__.py48
LOWdiscord/__init__.py48
LOWdiscord/__init__.py55
LOWdiscord/__init__.py56
LOWdiscord/__init__.py57
LOWdiscord/__init__.py58
LOWdiscord/__init__.py59
LOWdiscord/__init__.py60
LOWdiscord/__init__.py61
223 more matches not shown…
Deep Nesting87 hits · 82 pts
SeverityFileLineSnippet
LOWdiscord/gateway.py157
LOWdiscord/gateway.py631
LOWdiscord/gateway.py983
LOWdiscord/gateway.py1034
LOWdiscord/gateway.py1152
LOWdiscord/enums.py509
LOWdiscord/voice_state.py148
LOWdiscord/voice_state.py378
LOWdiscord/voice_state.py667
LOWdiscord/appinfo.py299
LOWdiscord/client.py528
LOWdiscord/client.py695
LOWdiscord/channel.py3639
LOWdiscord/channel.py979
LOWdiscord/channel.py2673
LOWdiscord/channel.py3121
LOWdiscord/activity.py871
LOWdiscord/activity.py793
LOWdiscord/message.py2193
LOWdiscord/role.py613
LOWdiscord/scheduled_event.py377
LOWdiscord/shard.py519
LOWdiscord/utils.py623
LOWdiscord/utils.py1130
LOWdiscord/utils.py1488
LOWdiscord/player.py784
LOWdiscord/http.py141
LOWdiscord/http.py456
LOWdiscord/http.py589
LOWdiscord/automod.py251
LOWdiscord/automod.py297
LOWdiscord/soundboard.py235
LOWdiscord/interactions.py215
LOWdiscord/components.py1750
LOWdiscord/audit_logs.py281
LOWdiscord/audit_logs.py376
LOWdiscord/audit_logs.py508
LOWdiscord/audit_logs.py706
LOWdiscord/__main__.py291
LOWdiscord/guild.py2000
LOWdiscord/guild.py3282
LOWdiscord/state.py606
LOWdiscord/state.py869
LOWdiscord/state.py1663
LOWdiscord/state.py1705
LOWdiscord/state.py1900
LOWdiscord/abc.py478
LOWdiscord/abc.py1146
LOWdiscord/abc.py1902
LOWdiscord/webhook/sync.py115
LOWdiscord/webhook/async_.py547
LOWdiscord/webhook/async_.py130
LOWdiscord/ui/view.py101
LOWdiscord/ui/view.py114
LOWdiscord/ui/view.py386
LOWdiscord/ui/view.py745
LOWdiscord/ui/view.py849
LOWdiscord/ui/modal.py176
LOWdiscord/ui/select.py133
LOWdiscord/ext/tasks/__init__.py208
27 more matches not shown…
Excessive Try-Catch Wrapping68 hits · 70 pts
SeverityFileLineSnippet
LOWsetup.py26 except Exception:
LOWdiscord/gateway.py166 except Exception:
LOWdiscord/gateway.py196 except Exception:
LOWdiscord/gateway.py606 except Exception as exc:
LOWdiscord/gateway.py1065 except Exception:
LOWdiscord/gateway.py1075 except Exception:
LOWdiscord/voice_state.py141 except Exception:
LOWdiscord/voice_state.py175 except Exception:
LOWdiscord/voice_state.py463 except Exception:
LOWdiscord/voice_state.py516 except Exception:
LOWdiscord/voice_state.py563 except Exception:
LOWdiscord/oggparse.py69 except Exception:
LOWdiscord/client.py511 except Exception:
LOWdiscord/client.py542 except Exception as exc:
LOWdiscord/shard.py184 except Exception as e:
LOWdiscord/shard.py211 except Exception as e:
LOWdiscord/shard.py225 except Exception as e:
LOWdiscord/shard.py486 except Exception:
LOWdiscord/player.py174 except Exception:
LOWdiscord/player.py236 except Exception:
LOWdiscord/player.py257 except Exception:
LOWdiscord/player.py262 except Exception:
LOWdiscord/player.py270 except Exception:
LOWdiscord/player.py294 except Exception:
LOWdiscord/player.py306 except Exception:
LOWdiscord/player.py313 except Exception:
LOWdiscord/player.py838 except Exception as exc:
LOWdiscord/player.py851 except Exception as exc:
LOWdiscord/player.py889 except Exception:
LOWdiscord/player.py896 except Exception:
MEDIUMdiscord/player.py835def run(self) -> None:
LOWdiscord/opus.py238 except Exception:
LOWdiscord/__main__.py85 except Exception as exc:
LOWdiscord/state.py170 except Exception:
LOWdiscord/state.py288 except Exception:
LOWdiscord/abc.py2156 except Exception:
LOWdiscord/ui/view.py599 except Exception as e:
LOWdiscord/ui/view.py1013 except Exception:
LOWdiscord/ui/view.py1032 except Exception:
LOWdiscord/ui/view.py1040 except Exception:
LOWdiscord/ui/modal.py217 except Exception as e:
LOWdiscord/ext/tasks/__init__.py276 except Exception as exc:
LOWdiscord/ext/commands/hybrid.py161 except Exception as exc:
LOWdiscord/ext/commands/hybrid.py175 except Exception as exc:
LOWdiscord/ext/commands/flags.py412 except Exception as e:
LOWdiscord/ext/commands/flags.py435 except Exception as e:
LOWdiscord/ext/commands/flags.py473 except Exception as e:
LOWdiscord/ext/commands/converter.py763 except Exception as exc:
LOWdiscord/ext/commands/converter.py1355 except Exception as exc:
LOWdiscord/ext/commands/converter.py1362 except Exception as exc:
LOWdiscord/ext/commands/core.py253 except Exception as exc:
LOWdiscord/ext/commands/core.py273 except Exception as exc:
LOWdiscord/ext/commands/bot.py248 except Exception:
LOWdiscord/ext/commands/bot.py254 except Exception:
LOWdiscord/ext/commands/bot.py946 except Exception:
LOWdiscord/ext/commands/bot.py962 except Exception as e:
LOWdiscord/ext/commands/bot.py974 except Exception as e:
LOWdiscord/ext/commands/bot.py1144 except Exception:
LOWdiscord/ext/commands/cog.py721 except Exception as e:
LOWdiscord/ext/commands/cog.py781 except Exception:
8 more matches not shown…
Self-Referential Comments15 hits · 43 pts
SeverityFileLineSnippet
MEDIUMdiscord/ext/commands/cooldowns.py176 """This class is a version of a semaphore.
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to its
MEDIUMexamples/modals/report.py36# Define a modal dialog for reporting issues or feedback
MEDIUMexamples/views/link.py24# Define a simple View that gives us a google link button.
MEDIUMexamples/views/ephemeral.py23# Define a simple View that gives us a counter button
MEDIUMexamples/views/ephemeral.py25 # Define the actual button
MEDIUMexamples/views/ephemeral.py41# Define a View that will give us our own personal counter button
MEDIUMexamples/views/layout.py23# Define a LayoutView, which will allow us to add v2 components to it.
MEDIUMexamples/views/persistent.py9# Define a simple View that persists between bot restarts
MEDIUMexamples/views/dropdown.py62 # Create the view containing our dropdown
MEDIUMexamples/views/embed_like.py18 # Create a session for making HTTP requests.
MEDIUMexamples/views/counter.py23# Define a simple View that gives us a counter button
MEDIUMexamples/views/counter.py25 # Define the actual button
MEDIUMexamples/views/tic_tac_toe.py21 # This function is called whenever this particular button is pressed
MEDIUMexamples/views/confirm.py22# Define a simple View that gives us a confirmation menu
Redundant / Tautological Comments17 hits · 20 pts
SeverityFileLineSnippet
LOWdiscord/player.py804 # Check if the source has an error (e.g., from FFmpegAudio process failure)
LOWdiscord/http.py462 # Check if we can pre-emptively block this request for having too large of a timeout
LOWdiscord/ui/view.py296 # Check if we've elapsed our currently set timeout
LOWdiscord/ext/commands/help.py982 # Check if it's a cog
LOWdiscord/app_commands/transformers.py810 # Check if a transform @classmethod is given to the class
LOWdiscord/app_commands/transformers.py821 # Check if there's an origin
LOWdiscord/app_commands/transformers.py911 # Check if the method is overridden
LOWdiscord/app_commands/commands.py262 # Check if there's an origin
LOWdiscord/app_commands/commands.py831 # Check if the on_error is overridden
LOWdiscord/app_commands/commands.py839 # Check if we have a bound error handler
LOWdiscord/app_commands/commands.py2546 # Check if called with parentheses or not
LOWdiscord/app_commands/commands.py2599 # Check if called with parentheses or not
LOWdiscord/app_commands/commands.py2649 # Check if called with parentheses or not
LOWdiscord/app_commands/commands.py2743 # Check if called with parentheses or not
LOWdiscord/app_commands/commands.py2792 # Check if called with parentheses or not
LOWexamples/reaction_roles.py28 # Check if we're still in the guild and it's cached.
LOWexamples/reaction_roles.py60 # Check if we're still in the guild and it's cached.
Slop Phrases6 hits · 18 pts
SeverityFileLineSnippet
MEDIUMdiscord/ui/container.py91 # or you can use your subclass:
MEDIUMdiscord/ui/action_row.py106 # or you can use your subclass:
MEDIUMdiscord/ui/action_row.py109 # you can add items with row.button and row.select
MEDIUMexamples/custom_context.py47 # with your new helper function, you can add a
MEDIUMexamples/views/layout.py25 # you can add any top-level component (ui.ActionRow, ui.Section, ui.Container, ui.File, etc.) here
MEDIUMexamples/views/embed_like.py106 # If you want the "embed" to have multiple images you can add a MediaGallery item
AI Slop Vocabulary8 hits · 16 pts
SeverityFileLineSnippet
LOWdiscord/enums.py136 # Special case classmethod to just pass through
MEDIUMdiscord/__init__.py94# Essentially forcing the exception to have different base classes
LOWdiscord/message.py2388 # didn't find anything so just return
LOWdiscord/http.py705 # the request was successful so just return the text/json
LOWdiscord/ext/commands/core.py1320 # since we have no checks, then we just return True.
MEDIUMdiscord/app_commands/translator.py111# For type checking purposes, it makes sense to allow the user to leverage type narrowing
LOWexamples/converters.py64 # Otherwise, we just return the converted member value.
MEDIUMexamples/views/dynamic_counter.py8# with state changes or dynamic items. In order to facilitate these complicated use cases,
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippet
LOWdiscord/http.py661
LOWdiscord/ext/tasks/__init__.py661 def _start_time_relative_to(self, now: datetime.datetime) -> Optional[int]:
LOWdiscord/ext/commands/help.py101FuncT = TypeVar('FuncT', bound=Callable[..., Any])
LOWdiscord/app_commands/commands.py861
LOWdocs/conf.py1#
LOWdocs/conf.py101
LOWdocs/conf.py121# List of patterns, relative to source directory, that match files and
LOWdocs/conf.py201
LOWdocs/conf.py221# Add any paths that contain custom static files (such as style sheets) here,
LOWdocs/conf.py241
LOWdocs/conf.py261# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
LOWdocs/conf.py321# the title page.
LOWdocs/crowdin.yml1# -*- coding: utf-8 -*-
LOWexamples/views/embed_like.py81 # A Section is a container that can hold 3 TextDisplay and an accessory.
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippet
HIGHdiscord/ext/commands/context.py281 raise RuntimeError('interaction channel ID is null, this is probably a Discord bug')
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWexamples/views/tic_tac_toe.py117 # If we're here, we need to check if a tie was made