FIX: Allow discord.com webhook URLs
This commit is contained in:
parent
fd51671991
commit
bb4143a695
|
@ -8,7 +8,7 @@ module DiscourseChat
|
||||||
|
|
||||||
CHANNEL_PARAMETERS = [
|
CHANNEL_PARAMETERS = [
|
||||||
{ key: "name", regex: '^\S+' },
|
{ 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
|
].freeze
|
||||||
|
|
||||||
def self.send_message(url, message)
|
def self.send_message(url, message)
|
||||||
|
|
Loading…
Reference in New Issue