mirror of
https://gitlab.com/niansa/SomeBot.git
synced 2025-03-06 20:48:26 +01:00
Fixed ticket ping
This commit is contained in:
parent
8dd6e0f71c
commit
8d4240c4a8
1 changed files with 2 additions and 1 deletions
|
@ -281,7 +281,7 @@ public:
|
|||
auto footer_text_opt = event.get_parameter("footer_text");
|
||||
auto title = title_opt.index()!=0?std::get<std::string>(title_opt):"Support Tickets",
|
||||
text = text_opt.index()!=0?std::get<std::string>(text_opt):"Klicke den Knopf an, um ein Ticket zu erstellen!",
|
||||
footer_text = footer_text_opt.index()!=0?std::get<std::string>(footer_text_opt):"Jemand wird sich anschließend um dein Anliegen kümmern.";
|
||||
footer_text = footer_text_opt.index()!=0?std::get<std::string>(footer_text_opt):"";
|
||||
unsigned color = Util::str_to_color(color_opt.index()!=0?std::get<std::string>(color_opt):"#ff2217");
|
||||
// Send embed there
|
||||
dpp::message msg;
|
||||
|
@ -431,6 +431,7 @@ public:
|
|||
// Create top-most message
|
||||
dpp::message msg;
|
||||
msg.set_channel_id(channel.id)
|
||||
.set_allowed_mentions(true, true, false, {}, {}, {})
|
||||
.set_content((ping&PingMode::creator?event.command.usr.get_mention():"")+(ping&PingMode::managers?("<@&"+management_role+'>'):""))
|
||||
.add_embed(dpp::embed()
|
||||
.set_title(title)
|
||||
|
|
Loading…
Add table
Reference in a new issue