Skip to content

Instantly share code, notes, and snippets.

@mikeshardmind
mikeshardmind / utils.py
Created July 13, 2023 10:01
sharing just the stupid ensure optimizations util
# Copyright 2023-present Michael Hall
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@LeoCx1000
LeoCx1000 / .README.md
Last active May 20, 2025 19:22
Mentionable CommandTree implementation to allow mentioning slash commands in discord.py

discord.py MentionableTree implementation

My implementation of a CommandTree subclass which allows for finding a mention for a given app command.

How to use?

Just copy the entire third file into a new python file of your project, and import MentionableTree from it.

You can also use git clone [gist link] folder_name and then from folder_name import MentionableTree

@jwodder
jwodder / rst-hyperlinks.rst
Last active August 7, 2025 14:18
All About reStructuredText Hyperlinks