Skip to content

Commit 1e5954a

Browse files
committed
Merge branch 'stable' into unstable
2 parents e3b9419 + c4e5e5d commit 1e5954a

File tree

5 files changed

+62
-16
lines changed

5 files changed

+62
-16
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Documentation Improvement Request
2+
description: Suggest an improvement or request a change in the documentation
3+
title: "[Docs]: "
4+
labels: [documentation]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for taking the time to help with our documentation!
10+
11+
- type: input
12+
id: page
13+
attributes:
14+
label: Page
15+
description: Please provide the URL of the page or section in the documentation that needs improvement.
16+
placeholder: e.g. https://github.com/your-repo/docs/specific-page.md
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: problem-description
22+
attributes:
23+
label: Problem description
24+
description: Describe the issue or problem with the current documentation. Be as specific as possible.
25+
placeholder: e.g. The example code provided is outdated and doesn't work with the latest version.
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: suggested-changes
31+
attributes:
32+
label: Suggested changes
33+
description: Describe your suggested changes or improvements to the documentation.
34+
placeholder: e.g. Update the example code to work with the latest version and add more explanation about the changes.
35+
validations:
36+
required: true
37+
38+
- type: textarea
39+
id: additional-context
40+
attributes:
41+
label: Additional context
42+
description: Provide any additional context or resources that may help in resolving the issue.
43+
placeholder: e.g., Links to related issues, documentation, or other resources.
44+
validations:
45+
required: false

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ repos:
1111
language: python
1212
types: [file, python]
1313
exclude_types: ['image']
14-
language_version: python3.10
1514
- id: trailing-whitespace
1615
name: Trailing Whitespace
1716
language: python
@@ -42,7 +41,6 @@ repos:
4241
name: Black Formatting
4342
language: python
4443
types: [ file, python ]
45-
language_version: python3.10
4644
# - repo: https://github.com/pycqa/isort
4745
# rev: 5.11.4
4846
# hooks:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import interactions
6565
bot = interactions.Client()
6666

6767
@interactions.listen()
68-
async def on_start():
68+
async def on_startup():
6969
print("Bot is ready!")
7070

7171
bot.start("token")

interactions/client/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ class MentionPrefix(Sentinel):
187187
MENTION_PREFIX = MentionPrefix()
188188

189189
PREMIUM_GUILD_LIMITS = defaultdict(
190-
lambda: {"emoji": 50, "stickers": 5, "bitrate": 96000, "filesize": 8388608},
190+
lambda: {"emoji": 50, "stickers": 5, "bitrate": 96000, "filesize": 26214400},
191191
{
192-
1: {"emoji": 100, "stickers": 15, "bitrate": 128000, "filesize": 8388608},
192+
1: {"emoji": 100, "stickers": 15, "bitrate": 128000, "filesize": 26214400},
193193
2: {"emoji": 150, "stickers": 30, "bitrate": 256000, "filesize": 52428800},
194194
3: {"emoji": 250, "stickers": 60, "bitrate": 384000, "filesize": 104857600},
195195
},

mkdocs.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repo_url: https://github.com/interactions-py/interactions.py
33
repo_name: interactions-py/interactions.py
44
copyright: Copyright &copy; 2023 - Present LordOfPolls – <a href="#__consent">Change cookie settings</a>
55
docs_dir: docs/src
6-
edit_uri: edit/master/docs/src
6+
edit_uri: edit/stable/docs/src
77
site_url: https://interactions-py.github.io/interactions.py/
88

99
theme:
@@ -22,6 +22,7 @@ theme:
2222
- toc.follow
2323
- content.tooltips
2424
- content.code.annotate
25+
- content.action.edit
2526
palette:
2627
# Palette toggle for automatic mode
2728
- media: "(prefers-color-scheme)"
@@ -71,18 +72,17 @@ extra:
7172
name: This page was helpful
7273
data: 1
7374
note: >-
74-
Thanks for your feedback!
75+
Thanks for your feedback! Your feedback helps us improve our documentation.
7576
- icon: material/heart-broken
7677
name: This page could be improved
7778
data: 0
7879
note: >-
79-
Thanks for your feedback! Please create an <a href="https://github.com/interactions-py/interactions.py/issues/new/choose">issue on Github</a> if you have any suggestions.
80-
consent:
80+
Thanks for your feedback! Please <a href="https://github.com/interactions-py/interactions.py/issues/new?assignees=LordOfPolls&labels=documentation&template=doc_improvement_req.yml&title=docs:+{title}&page={title} : {url}">open an issue</a> so we can improve our documentation.
8181
title: Cookie consent
8282
description: >-
8383
We use cookies to measure the effectiveness of our documentation and whether users
8484
find what they're searching for. With your consent, you're helping us to
85-
make our documentation better.
85+
make our documentation better. Only operational data is collected, no personal data.
8686
actions:
8787
- accept
8888
- reject
@@ -99,6 +99,10 @@ plugins:
9999
- autorefs
100100
- git-revision-date-localized:
101101
fallback_to_build_date: true
102+
enable_creation_date: true
103+
- git-committers:
104+
repository: interactions-py/interactions.py
105+
branch: stable
102106
- mkdocstrings:
103107
# custom_templates: docs/templates
104108
enable_inventory: true
@@ -117,12 +121,11 @@ plugins:
117121
show_if_no_docstring: False # temporary, this will be reverted to False once we're done with docs
118122
- minify:
119123
minify_html: true
120-
# keep these at the bottom of the plugins list
121-
# - privacy:
122-
# externals: bundle
123-
# enabled: !ENV [ DEPLOY, False ]
124-
# - offline:
125-
# enabled: !ENV [ DEPLOY, False ]
124+
# keep this at the bottom of the plugins list - if you are building without insiders, comment it out
125+
- privacy:
126+
# Downloads all external resources and stores them locally
127+
externals: bundle
128+
enabled: !ENV [ DEPLOY, False ]
126129

127130

128131
markdown_extensions:

0 commit comments

Comments
 (0)