Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

[pull] rewrite from rapptz:master #154

Open
wants to merge 3,179 commits into
base: rewrite
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3179 commits
Select commit Hold shift + click to select a range
ebe2661
Add missing scheduled_event field to StageChannel.create_instance
Soheab Oct 1, 2023
e1aa6cc
Fix bad voice state when moving to a voice channel without permissions
imayhaveborkedit Oct 1, 2023
5eb2f30
Add an 'a' where it is missing in on_member_ban
ignxdank Oct 18, 2023
163a86c
Raise WebSocketClosure on protocol level errors
Rapptz Oct 19, 2023
5d35328
Support for AutoMod Members
codeofandrin Oct 19, 2023
99618c8
Add support for premium app integrations
Luc1412 Oct 19, 2023
7d15992
Fix entitlement_delete event dispatch
owocado Oct 20, 2023
933460c
Fix member_profile triggers not having attributes filled
z03h Oct 20, 2023
e1c1a72
Fix AutoModRuleAction attribute error
z03h Oct 21, 2023
ef09440
Fix SKU return type and documentation
codeofandrin Oct 21, 2023
c7edfc7
Future proof usage of async_timeout
imayhaveborkedit Oct 24, 2023
67ae85a
Fix typos in Forbidden descriptions for Member methods
ignxdank Oct 25, 2023
a5d03d4
Add specialcase for AutoMod triggers in audit log diff
z03h Oct 25, 2023
5c46f81
Document type property and classmethods for SelectDefaultValueType
Soheab Nov 19, 2023
3009c46
Fix typo in documentation; "users" -> "roles"
ldv8434 Nov 20, 2023
a9936c2
Fix typo in HTTPClient create_entitlement
sgtlaggy Nov 20, 2023
9810cb9
Add warning to VoiceProtocol.on_voice_state_update
EvieePy Nov 20, 2023
56c67d3
Implement editing application info
codeofandrin Nov 20, 2023
536cf5c
[Crowdin] Updated translation files
github-actions[bot] Nov 20, 2023
2b51e5e
[commands] Change import for PrivateChannel for cooldowns
Rapptz Dec 10, 2023
29344b9
Add thread getters to Message
LostLuma Dec 10, 2023
4d03fa1
Update typo for automod_rule_trigger in docs
CastelRune Dec 10, 2023
9b9c93a
[tasks] Fix typing for tasks.SleepHandle.future set calls
Sachaa-Thanasius Dec 10, 2023
d9f8115
Add platform property to Activity and Game
giginet Dec 10, 2023
f6182e5
Add missing suppress_embeds kwarg to InteractionResponse.edit_message
Soheab Dec 10, 2023
50190e0
Add applied_tags param to Webhook.send
codeofandrin Dec 12, 2023
9db0dad
Fix voice disconnect+connect race condition
imayhaveborkedit Dec 15, 2023
08ef42f
Add new incident message types
codeofandrin Dec 18, 2023
2a59e02
Add latin_american_spanish locale
2br-2b Dec 18, 2023
d25b574
Clear outstanding chunk requests when receiving a READY event
Rapptz Dec 24, 2023
9ce7333
Add support for setting voice channel status
codeofandrin Dec 26, 2023
078b500
Fix dynamic item views having a timeout causing it to evict
Rapptz Dec 30, 2023
de6a6af
Fix DynamicItem row attribute being overridden
Rapptz Jan 6, 2024
9a1b91d
Properly restrict auto_moderation audit log action range
Rapptz Jan 6, 2024
cb3ea9b
Add shard_connect_timeout parameter for AutoShardedClient
Rapptz Jan 8, 2024
3258507
Call inner item callback and interaction_check by default
Rapptz Jan 24, 2024
9859a39
Pin documentation dependencies
Rapptz Jan 26, 2024
0fadddf
Downgrade sphinxcontrib-websupport version
Rapptz Jan 26, 2024
62a70c2
Pin remaining documentation dependencies
Rapptz Jan 26, 2024
851c857
Add support for guild incidents
Soheab Jan 27, 2024
841e915
Add Python 3.12 to list of supported versions
PythonCoderAS Jan 27, 2024
070ae24
Document all limits in discord.ui
Soheab Jan 27, 2024
e25b7ff
Support for avatar decorations
codeofandrin Jan 27, 2024
a9ff587
Fix move_to related voice state bugs
imayhaveborkedit Jan 27, 2024
bd402b4
Correct typo in error message: "error" to "autocomplete"
amazingakai Jan 27, 2024
8d3b562
Update ClientUser.edit docs for animated avatars
JDJGInc Feb 8, 2024
9345a2a
Add warning for FFmpeg spawning classes executable parameter
Rapptz Feb 11, 2024
76666fb
Properly check for maximum number of children
Rapptz Feb 17, 2024
4e03b17
Update pyright version
bijij Feb 20, 2024
61eddfc
Fix sticker URL for GIF stickers
owocado Feb 20, 2024
56916f9
Fix comparisons between two Object with types
Rapptz Feb 23, 2024
edf7ce2
Update Guild.prune_members required permissions notes
fretgfr Mar 14, 2024
82d13e7
Add support for ClientUser editing banners
AbstractUmbra Mar 14, 2024
ded9c5d
Add support for bulk banning members
Rapptz Mar 15, 2024
0e016be
Clarify some docstrings around BulkBanResponse
Rapptz Mar 15, 2024
2f71506
Add view_creator_monetization_analytics permission
owocado Mar 21, 2024
425edd2
Improve __repr__ for Webhook and SyncWebhook
owocado Mar 22, 2024
dc6d33c
copy over original row position for dynamic items
ika2kki Apr 18, 2024
b8c29b0
More voice fixes
imayhaveborkedit Apr 18, 2024
f1a19f2
Remove entry that is yet to be released from 2.3.2 changelog
Jackenmen Apr 18, 2024
5497674
Add support for applied_tags in Webhook.send overloaded methods
Vioshim Apr 18, 2024
0362b2f
[docs] fix gateway payload hyperlinks
SebbyLaw Apr 18, 2024
d853a3f
Document bulk ban user limit and permission
Rinume-chan Apr 18, 2024
8fd1fd8
Fix AutoModRule.edit handling of AutoModRuleEventType enum
AbstractUmbra Apr 21, 2024
88f62d8
Ensure Client.close() has finished in __aexit__
mikeshardmind May 5, 2024
0b4263e
[Crowdin] Updated translation files
github-actions[bot] May 5, 2024
0ee1794
Fix channel deletion not removing associated threads
LostLuma May 5, 2024
2892401
Add support for one-time purchases
Luc1412 May 5, 2024
2e2f51f
First pass at supporting user apps
Rapptz May 5, 2024
ef64f76
Add reason kwarg to Thread.delete
owocado May 5, 2024
692db7e
Add approximate_guild_count to AppInfo
fretgfr May 5, 2024
9fab99a
[commands] Add support for type statement and NewType
bijij May 5, 2024
71358b8
[commands] Add support for positional flag parameters
Vioshim May 5, 2024
963bb08
Add support for Message.interaction_metadata
Soheab May 6, 2024
0c35354
Move most static metadata to pyproject.toml
Sachaa-Thanasius May 6, 2024
2248fc1
Fix various code around Message.interaction(_metadata)
Soheab May 6, 2024
64e743a
Use InteractionMetadata for InteractionResponse.edit_message
Rapptz May 7, 2024
0bb6967
Fix typo in Guild.vanity_invite documentation
itswilliboy May 9, 2024
a1206df
Fix typing of various AppCommand decorators
mikeshardmind May 9, 2024
e43bd86
Add support for Polls
DA-344 May 10, 2024
f851d9a
Add missing poll permissions to permission classmethods
z03h May 10, 2024
e5ae306
Add more missing perms to permission classmethods
z03h May 10, 2024
041abf8
Fix Poll.question docstring
DA-344 May 10, 2024
2f479b2
Document bitrate kwarg in StageChannel.edit
lmaotrigine May 15, 2024
9d979d3
Some docs fixes for polls
DA-344 May 15, 2024
2751b55
Fix Webhook poll sending raising AttributeError with a mocked state
DA-344 May 16, 2024
d53877f
Remove async_timeout requirement
Rapptz May 16, 2024
b0024dc
Change line endings from CRLF to LF in voice_state.py
Rapptz May 16, 2024
b9dc85e
Add type attribute to Invite
codeofandrin May 17, 2024
b5ada0a
Fix merge methods for AppCommandContext and AppInstallationType
JeronimusII May 18, 2024
f77ba71
Add reaction type to raw events and users iterator
codeofandrin May 18, 2024
efe81a6
Fix Message.poll not prioritising API data over cached data
Rapptz May 22, 2024
d18f14c
[commands] fix HelpCommand not carrying over checks
z03h May 30, 2024
205ddaf
Update Polls event docs
DA-344 May 30, 2024
2c19764
Add note about archiver_id
tailoric May 30, 2024
cc32fb3
Add notes about contexts and installation_types availability
Soheab May 31, 2024
5114274
Fix bug with cache superfluously incrementing role position
LeoCx1000 May 31, 2024
356474f
Add ButtonStyle.premium
DA-344 Jun 1, 2024
0e58a92
[commands] Add support for channel URLs in channel converter
Rapptz Jun 2, 2024
fdb17ea
Fix exempt_channels not being passed along in create_automod_rule
LeoCx1000 Jun 11, 2024
895d6c3
Add Permissions.use_external_apps
DA-344 Jun 11, 2024
bb1d09a
Account for user installations in Channel.permissions_for
Kile Jun 12, 2024
837bc35
Add missing versionadded for a few decorators
Rapptz Jun 12, 2024
fb12d3d
Remove unnecessary warning logs for poll events
Rapptz Jun 14, 2024
9eac365
Allow deletion race conditions to work with purge
mikeshardmind Jun 14, 2024
be9edf8
Remove setting sku_id explicitly via button decorator
DA-344 Jun 15, 2024
c055fd3
Fix ui.Button providing a custom_id for premium buttons
Rapptz Jun 15, 2024
d528e8f
Add information on Message.poll for Message Content Intent
Rapptz Jun 21, 2024
c75ca25
Add changelog for v2.4.0
AbstractUmbra Jun 22, 2024
978a96b
Version bump to v2.4.0
Rapptz Jun 22, 2024
3a80636
Version bump for development
Rapptz Jun 22, 2024
6643784
[commands] Clarify Converter.convert exception raising
Rapptz Jul 5, 2024
97ca618
Fix incorrect Select max option condition
junah201 Jul 5, 2024
7d3eff9
Allow discord.Object use for permissions in channel creation
mikeshardmind Jul 10, 2024
a13fc8f
Add support for guild_banner and display_banner
Rapptz Jul 16, 2024
86dd29a
Properly copy banner information on updates
Rapptz Jul 16, 2024
04b2e49
Fix documentation for abc.GuildChannel.move to be more clear
Rapptz Jul 21, 2024
ff638d3
Fix Polls limiting duration at 7 days
DA-344 Jul 21, 2024
a183a56
Fix _get_command_error improperly handling some error messages
pythonmcpi Aug 28, 2024
c41cadf
Fix introduced potential TypeError with _get_command_error
Rapptz Aug 28, 2024
da89fbc
Re-add client connector param
mikeshardmind Aug 28, 2024
38bbfed
Fix Poll.duration rounding error
ambdroid Aug 28, 2024
a6d1dc0
Add support for getting the attachment's title
Soheab Aug 28, 2024
0a2faa6
Fix default_avatar for team user and webhook
owocado Aug 28, 2024
1c6f3c5
[docs] Remove pack_id attribute from Sticker
codeofandrin Aug 28, 2024
7cf6df1
Fix url for GIF StickerItem
Binacy Aug 28, 2024
794f2bf
[docs] correct hyperlink to discord docs
fretgfr Aug 28, 2024
8104ff2
[docs] Fix typehint for Embed.set_(image,thumbnail)
lmaotrigine Aug 28, 2024
3018fee
Remove stale documentation in Embed.set_thumbnail
Rapptz Aug 28, 2024
9ab938a
Add Guild.fetch_role
codeofandrin Aug 28, 2024
d578709
Add approximate_user_install_count to AppInfo
AbstractUmbra Aug 28, 2024
f9dbe60
Revert "Set socket family of connector to AF_INET"
oliver-ni Aug 28, 2024
34bf026
Add support for get sticker pack
codeofandrin Aug 28, 2024
aeab0d4
Fix stacklevel for Message.interaction deprecation warning
Jackenmen Aug 28, 2024
624b5b7
Use fallback audioop package for Python v3.13 or higher
Rapptz Aug 28, 2024
643a7f4
Add DummyCookieJar to client owned ClientSession
DeepSJain Aug 28, 2024
fde7131
Add missing guild incident fields
Soheab Aug 28, 2024
62e5280
Add support Member.fetch_voice
codeofandrin Aug 28, 2024
463b4bd
Add support for application emojis
Soheab Aug 28, 2024
a08f7a1
Add a warning if interaction endpoint URL is set on login
Rapptz Aug 29, 2024
6d81981
Remove aiodns from being used on Windows
mikeshardmind Aug 29, 2024
d3e63a0
Fix Guild.invites_paused method
owocado Aug 29, 2024
dee5bf6
Update MemberFlags to have newest values
Rapptz Aug 29, 2024
733c583
Remove _get_poll lookup in Message constructor
Rapptz Aug 31, 2024
66d7405
Remove outdated leftover comment about polls
Rapptz Aug 31, 2024
df4b1c8
Move MissingApplicationID to top-level discord namespace
Rapptz Aug 31, 2024
59f877f
Fix and add test for missing discord.Permission bits
mikeshardmind Sep 2, 2024
a70217a
Support for Soundboard and VC effects
codeofandrin Oct 9, 2024
0298f81
Add more tests for colour, embeds, files, buttons and modals
junah201 Oct 9, 2024
053f29c
Update all channel clone implementations
Soheab Oct 9, 2024
3e168a9
Improve typing of app command transformers
mikeshardmind Oct 9, 2024
d10e70e
[docs] Fix spelling
lmaotrigine Oct 9, 2024
91f300a
Add zstd gateway compression to speed profile
LostLuma Oct 9, 2024
ec9fd57
Add support for AEAD XChaCha20 Poly1305 encryption mode
EvieePy Oct 9, 2024
1ad45f5
Add missing error for Guild.fetch_automod_rule
Gooraeng Oct 9, 2024
0ce75f3
[commands] Fix issue with category cooldowns outside of guild channels
bijij Oct 9, 2024
58b6929
Add SKU subscriptions support
MCausc78 Oct 9, 2024
9d7c253
Add missing error for Message.edit
iyad-f Oct 9, 2024
20c543f
Add support for message call
codeofandrin Oct 10, 2024
a5f9350
Add category parameter to abc.GuildChannel.clone
codeofandrin Oct 10, 2024
04b8f38
Remove leftover print statement
owocado Oct 10, 2024
b3141db
Add support for messages with type purchase_notification
Soheab Oct 10, 2024
48cf500
Fix Message.system_content for role_subscription_purchase renewal type
owocado Oct 11, 2024
b11f19a
Add proxy support for get_from_cdn
CloudyAvalon Oct 11, 2024
99a7093
Add support for message forwarding
DA-344 Oct 11, 2024
b207c8a
[commands] Add perms object param to default_permissions decorator
codeofandrin Oct 12, 2024
2087564
Fix MessageReferenceType not being public
z03h Oct 12, 2024
5734996
Fix soundboard sounds event data type
Rapptz Oct 12, 2024
442ad40
[commands] Add SoundboardSoundConverter
z03h Oct 13, 2024
ca85782
[commands] Fix Context.defer unconditionally deferring
Rapptz Oct 13, 2024
9da131e
Fix variance typing issue with CommandTree.error decorator
PythonCoderAS Oct 14, 2024
b0c66b7
Fix NameError in sku.py
Soheab Oct 16, 2024
c5e7406
[commands] Unwrap Parameter if given as default to commands.parameter
Soheab Oct 16, 2024
354ae42
Fix abc.GuildChannel.clone implementations
Soheab Oct 16, 2024
c8ecbd8
Add Message.forward flag
diceroll123 Oct 22, 2024
e94fb45
Add note about using venvs on Linux
Rapptz Oct 22, 2024
a0b0a97
Support enforce_nonce and add random nonce for message creation
Rapptz Oct 27, 2024
ed61588
Handle improper 1000 closures by Discord
Rapptz Oct 28, 2024
d08fd59
Avoid returning in finally
mikeshardmind Oct 30, 2024
af75985
Fix incorrect import
diceroll123 Oct 31, 2024
c7305b0
[commands] Respect enabled kwarg for hybrid app commands
Soheab Nov 7, 2024
814ce3c
Add command target to MessageInteractionMetadata
Soheab Nov 9, 2024
7db879b
Clear up add_roles and remove_roles documentation
MajorTanya Nov 9, 2024
5c4c281
Sanitize invite argument before calling the invite info endpoint
Rapptz Nov 24, 2024
e1b6310
Remove / from being safe from URI encoding when constructing paths
Rapptz Nov 24, 2024
7f95357
Add mention property to PartialMessageable
Soheab Dec 1, 2024
9806aeb
Add public method to get session start limits
mikeshardmind Dec 1, 2024
fcd9239
Add Client.fetch_guild_preview method
gingershaped Jan 15, 2025
bb5a470
Bump Sphinx to 5.3.0
LevBernstein Jan 15, 2025
f2aa0b8
[tasks] Fix race condition with set_result
mikeshardmind Jan 15, 2025
eb15aa8
Add exclude_deleted parameter to Client.entitlements
DA-344 Jan 15, 2025
6214942
Fix SessionStartLimits and SKU.subscriptions docstrings
DA-344 Jan 15, 2025
9dc8e27
Add ForumChannel.members property
LostLuma Jan 15, 2025
ed95f2f
Parse full message for raw message edit event
Soheab Jan 15, 2025
7c8503f
Fix callable FlagConverter defaults on hybrid commands
DA-344 Jan 15, 2025
1646471
Revert "Bump Sphinx to 5.3.0"
Rapptz Jan 15, 2025
55974eb
Fix MessageSnapshot sticker_items typo
vionya Jan 15, 2025
cf6d7ff
Fix bug due to typo in async pagination of entitlements loop
AbstractUmbra Jan 15, 2025
1537102
Temporary dependency for docs extra on python 3.13+
mikeshardmind Jan 15, 2025
fa1cc00
Return new instance in Poll.end to avoid inconsistencies
ilovetocode2019 Jan 15, 2025
1edec93
Update Member.timed_out_until docstring
scrazzz Jan 15, 2025
2c3938d
Update Client.create_application_emoji docs
tom-jm69 Jan 16, 2025
7db3911
Add __repr__ to Interaction
owocado Jan 16, 2025
d956058
[commands] Fix _fallback attr not being set on replace for Parameter
AbstractUmbra Jan 16, 2025
d5c80b6
Add optional dev dependencies
Soheab Jan 16, 2025
b1b7369
Added scopeless kwarg to discord.utils.oauth_url
Depreca1ed Jan 17, 2025
743ef27
[commands] Correct ExtensionNotFound error message
Soheab Jan 19, 2025
ff2ad34
Add support for multiple subscription tier SKUs
DA-344 Jan 19, 2025
afbbc07
Add support for poll result messages
DA-344 Jan 19, 2025
418a791
Add raw presence update evemt
EvieePy Jan 21, 2025
db7b2d9
Change default file size limit
mikeshardmind Jan 22, 2025
88d7bd1
Fix message_pin, message_unpin target id being None
iyad-f Feb 9, 2025
7f51136
Fix wait_for overloads
Soheab Feb 9, 2025
a8134df
Fix Embed type attribute ddocs link
MajorTanya Feb 9, 2025
42e4a87
Fix typo in voice server update state handling
dolfies Feb 9, 2025
52967ec
Fix path sanitation for absolute Windows paths
tailoric Feb 9, 2025
76eb126
Add 'mention' property in PartialWebhookChannel
Gooraeng Feb 9, 2025
8a95c01
Add support for embed flags and update attachment flags
DA-344 Feb 12, 2025
4c3ce8f
Fix Member.roles having None members
Depreca1ed Feb 12, 2025
8edf433
Implement rich role.move interface
LeoCx1000 Feb 12, 2025
6ab747f
Add support for sending views in stateless webhooks
DA-344 Feb 17, 2025
fa158a5
Add support for getting and editing integration_types_config applicat…
Soheab Feb 18, 2025
5b78097
Add support for Interaction Callback Resource
DA-344 Feb 18, 2025
776fc22
[commands] Use interaction response within Context.send
Rapptz Feb 18, 2025
1cdf710
Rename InteractionCallback to InteractionCallbackResponse
Rapptz Feb 18, 2025
8953938
Update Pyright to v1.1.394
Rapptz Feb 18, 2025
43e1c55
Remove with_response parameter documentation
Rapptz Feb 18, 2025
e8d571b
Add missing Poll attribute documentation
Rapptz Feb 18, 2025
3ad0662
Document SoundboardSoundConverter
Rapptz Feb 18, 2025
a1aa597
Add changelog for v2.5
Rapptz Feb 18, 2025
e837ac1
Version bump to v2.5.0
Rapptz Feb 18, 2025
2cf1bab
Version bump for development
Rapptz Feb 18, 2025
4703234
Pass BotT type argument to DeferTyping
itswilliboy Feb 19, 2025
0e4f061
Fix InteractionCallbackResponse.resource having incorrect state
DA-344 Feb 19, 2025
19f02c4
Document message types that can have a default message reference
Jackenmen Feb 24, 2025
a8b4eb1
Create ScheduledEvent on cache miss in SCHEDULED_EVENT_DELETE
dolfies Feb 24, 2025
93426da
Improve on_timeout FAQ
Soheab Feb 24, 2025
66f3548
Add defaults for message object parsing
dolfies Feb 28, 2025
fbe2b35
Add note about NotFound for Messageable.send
Rapptz Feb 28, 2025
de5720e
Fix attachment is_spoiler() and is_voice_message()
dolfies Mar 3, 2025
cab4732
Make embed flags required and add them to all media fields
dolfies Mar 4, 2025
6b0a6ee
Add v2.5.1 changelog
Rapptz Mar 4, 2025
73f261d
Version bump to v2.5.1
Rapptz Mar 4, 2025
973bb50
Version bump for development
Rapptz Mar 4, 2025
2f8b262
Fix improper class in audit log docs
LeoCx1000 Mar 4, 2025
8594dd1
Fix embed media flags regression
dolfies Mar 4, 2025
f4bce1c
Add changelog for v2.5.2
Rapptz Mar 5, 2025
d2a6ccf
Version bump to v2.5.2
Rapptz Mar 5, 2025
460d188
Version bump for development
Rapptz Mar 5, 2025
2685516
update PyNaCl minimum version dependency
rishitkhare Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: discordpy
34 changes: 0 additions & 34 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

78 changes: 78 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Bug Report
description: Report broken or incorrect behaviour
labels: unconfirmed bug
body:
- type: markdown
attributes:
value: >
Thanks for taking the time to fill out a bug.
If you want real-time support, consider joining our Discord at https://discord.gg/r3sSKJJ instead.

Please note that this form is for bugs only!
- type: input
attributes:
label: Summary
description: A simple summary of your bug report
validations:
required: true
- type: textarea
attributes:
label: Reproduction Steps
description: >
What you did to make it happen.
validations:
required: true
- type: textarea
attributes:
label: Minimal Reproducible Code
description: >
A short snippet of code that showcases the bug.
render: python
- type: textarea
attributes:
label: Expected Results
description: >
What did you expect to happen?
validations:
required: true
- type: textarea
attributes:
label: Actual Results
description: >
What actually happened?
validations:
required: true
- type: input
attributes:
label: Intents
description: >
What intents are you using for your bot?
This is the `discord.Intents` class you pass to the client.
validations:
required: true
- type: textarea
attributes:
label: System Information
description: >
Run `python -m discord -v` and paste this information below.

This command required v1.1.0 or higher of the library. If this errors out then show some basic
information involving your system such as operating system and Python version.
validations:
required: true
- type: checkboxes
attributes:
label: Checklist
description: >
Let's make sure you've properly done due diligence when reporting this issue!
options:
- label: I have searched the open issues for duplicates.
required: true
- label: I have shown the entire traceback, if possible.
required: true
- label: I have removed my token from display, if visible.
required: true
- type: textarea
attributes:
label: Additional Context
description: If there is anything else to say, please do so here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
about: Ask questions and discuss with other users of the library.
url: https://github.com/Rapptz/discord.py/discussions
- name: Discord Server
about: Use our official Discord server to ask for help and questions as well.
url: https://discord.gg/r3sSKJJ
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Feature Request
description: Suggest a feature for this library
labels: feature request
body:
- type: input
attributes:
label: Summary
description: >
A short summary of what your feature request is.
validations:
required: true
- type: dropdown
attributes:
multiple: false
label: What is the feature request for?
options:
- The core library
- discord.ext.commands
- discord.ext.tasks
- The documentation
validations:
required: true
- type: textarea
attributes:
label: The Problem
description: >
What problem is your feature trying to solve?
What becomes easier or possible when this feature is implemented?
validations:
required: true
- type: textarea
attributes:
label: The Ideal Solution
description: >
What is your ideal solution to the problem?
What would you like this feature to do?
validations:
required: true
- type: textarea
attributes:
label: The Current Solution
description: >
What is the current solution to the problem, if any?
validations:
required: false
- type: textarea
attributes:
label: Additional Context
description: If there is anything else to say, please do so here.
11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Summary
## Summary

<!-- What is this pull request for? Does it fix any issues? -->

### Checklist
## Checklist

<!-- Put an x inside [ ] to check it, like so: [x] -->

Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: build

on:
push:
pull_request:
types: [ opened, reopened, synchronize ]

jobs:
dists-and-docs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.x' ]
language: [ 'en', 'ja' ]

name: dists & docs (${{ matrix.python-version }}/${{ matrix.language }})
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -U -r requirements.txt

- name: Build distributions
run: |
python ./setup.py sdist bdist_wheel

# - name: Upload artifacts
# uses: actions/upload-artifact@v2
# with:
# name: distributions
# path: dist/*

- name: Install package
run: |
pip install -e .[docs,speed,voice]

- name: Build docs
shell: bash
run: |
cd docs
sphinx-build -b html -D language=${DOCS_LANGUAGE} -j auto -a -n -T -W --keep-going . _build/html
env:
DOCS_LANGUAGE: ${{ matrix.language }}

# - name: Upload docs
# uses: actions/upload-artifact@v2
# if: always()
# with:
# name: docs-${{ matrix.language }}
# path: docs/_build/html/*
73 changes: 73 additions & 0 deletions .github/workflows/crowdin_download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: crowdin download

on:
schedule:
- cron: '0 18 * * 1'
workflow_dispatch:

jobs:
check-environment:
runs-on: ubuntu-latest
environment: Crowdin
outputs:
available: ${{ steps.check.outputs.available }}
steps:
- id: check
if: env.CROWDIN_API_KEY != null
run: |
echo "available=true" >> $GITHUB_OUTPUT
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}

download:
runs-on: ubuntu-latest
needs: [ check-environment ]
# secrets cannot be accessed inside an `if` so this needs to be checked in separate job
if: needs.check-environment.outputs.available == 'true'
environment: Crowdin
name: download
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master

- name: Install system dependencies
run: |
wget -qO - https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add -
echo "deb https://artifacts.crowdin.com/repo/deb/ /" | sudo tee -a /etc/apt/sources.list.d/crowdin.list
sudo apt-get update -qq
sudo apt-get install -y crowdin3

- name: Download translations
shell: bash
run: |
cd docs
crowdin download --all
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}

- name: Create pull request
id: cpr_crowdin
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Crowdin translations download
title: "[Crowdin] Updated translation files"
body: |
Created by the [Crowdin download workflow](.github/workflows/crowdin_download.yml).
branch: "auto/crowdin"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

- name: Close and reopen the PR with different token to trigger CI
uses: actions/github-script@v3
env:
PR_NUMBER: ${{ steps.cpr_crowdin.outputs.pull-request-number }}
PR_OPERATION: ${{ steps.cpr_crowdin.outputs.pull-request-operation }}
with:
github-token: ${{ secrets.GH_REPO_SCOPED_TOKEN }}
script: |
const script = require(
`${process.env.GITHUB_WORKSPACE}/.github/workflows/scripts/close_and_reopen_pr.js`
);
console.log(script({github, context}));
Loading