[discord] do not match message URLs as channels (#7059)
This commit is contained in:
@@ -233,7 +233,7 @@ class DiscordExtractor(Extractor):
|
|||||||
|
|
||||||
class DiscordChannelExtractor(DiscordExtractor):
|
class DiscordChannelExtractor(DiscordExtractor):
|
||||||
subcategory = "channel"
|
subcategory = "channel"
|
||||||
pattern = BASE_PATTERN + r"/channels/(\d+)/(?:\d+/threads/)?(\d+)"
|
pattern = BASE_PATTERN + r"/channels/(\d+)/(?:\d+/threads/)?(\d+)/?$"
|
||||||
example = "https://discord.com/channels/1234567890/9876543210"
|
example = "https://discord.com/channels/1234567890/9876543210"
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user