mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
feat(bot): basic webhook username templating
This commit is contained in:
parent
87196e3297
commit
4248b7bc32
16 changed files with 78 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
create function message_context(account_id bigint, guild_id bigint, channel_id bigint, thread_id bigint)
|
||||
create function message_context(account_id bigint, guild_id bigint, channel_id bigint, thread_id bigint)
|
||||
returns table (
|
||||
allow_autoproxy bool,
|
||||
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
case_sensitive_proxy_tags bool,
|
||||
proxy_error_message_enabled bool,
|
||||
proxy_switch bool,
|
||||
name_format text,
|
||||
|
||||
tag_enabled bool,
|
||||
proxy_enabled bool,
|
||||
|
|
@ -42,6 +43,7 @@ as $$
|
|||
system_config.case_sensitive_proxy_tags as case_sensitive_proxy_tags,
|
||||
system_config.proxy_error_message_enabled as proxy_error_message_enabled,
|
||||
system_config.proxy_switch as proxy_switch,
|
||||
system_config.name_format as name_format,
|
||||
|
||||
-- system_guild table
|
||||
coalesce(system_guild.tag_enabled, true) as tag_enabled,
|
||||
|
|
@ -174,4 +176,4 @@ begin
|
|||
if not exists (select 1 from groups where hid = new_hid) then return new_hid; end if;
|
||||
end loop;
|
||||
end
|
||||
$$ language plpgsql volatile;
|
||||
$$ language plpgsql volatile;
|
||||
Loading…
Add table
Add a link
Reference in a new issue