mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-06 17:59:29 +00:00
FIX: Allow discord.com webhook URLs
This commit is contained in:
parent
fd51671991
commit
bb4143a695
@ -8,7 +8,7 @@ module DiscourseChat
|
||||
|
||||
CHANNEL_PARAMETERS = [
|
||||
{ key: "name", regex: '^\S+' },
|
||||
{ key: "webhook_url", regex: '^https:\/\/discordapp\.com\/api\/webhooks\/', unique: true, hidden: true }
|
||||
{ key: "webhook_url", regex: '^https:\/\/discord(?:app)?\.com\/api\/webhooks\/', unique: true, hidden: true }
|
||||
].freeze
|
||||
|
||||
def self.send_message(url, message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user