mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* Discord Ahelp Reply System (#2283) * First part of Remote Bwoinking * This should technically work * No Actoring * Fixes Guid not sending over * Making it work for the final. * Fixes for api * Moar Commants! Just more Comments to mark Frontier changes. * comment * wops * Fixes Naming Rules * I Should also fix the naming in the actually code... * Testing some new code * Naming rule and dependency fix (hopefully) * Serverside Webhook update on external sent ahelp messages * Still get data from custom URL's, even if it dosent match a discord webhook * Apply suggestions from code review (Part 1) Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Apply suggestions from code review (Part 2) * Bwoink system suggsetions * missing BwoinkSystem changes * Change access on BwoinkSystem._messageQueues * Updates the Regex to support other Discord Clients (beta, alpha) * Merge Fixes * BwoinkSystem: explicitly match "canary."/"ptb." --------- Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> Co-authored-by: Whatstone <whatston3@gmail.com> * All the configuration * CVar to use admin OOC color * Fix description. * Review changes * Review changes * Review changes --------- Co-authored-by: Myzumi <34660019+Myzumi@users.noreply.github.com> Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> Co-authored-by: Whatstone <whatston3@gmail.com>
54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using Content.Shared.Administration;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Content.Server._NF.Administration;
|
|
|
|
public sealed class BwoinkActionBody
|
|
{
|
|
public required string Text { get; init; }
|
|
public required string Username { get; init; }
|
|
public required Guid Guid { get; init; }
|
|
public bool UserOnly { get; init; }
|
|
public required bool WebhookUpdate { get; init; }
|
|
public required string RoleName { get; init; }
|
|
public required string RoleColor { get; init; }
|
|
}
|
|
|
|
public sealed class BwoinkParams
|
|
{
|
|
public SharedBwoinkSystem.BwoinkTextMessage Message { get; set; }
|
|
public NetUserId SenderId { get; set; }
|
|
public AdminData? SenderAdmin { get; set; }
|
|
public string SenderName { get; set; }
|
|
public INetChannel? SenderChannel { get; set; }
|
|
public bool UserOnly { get; set; }
|
|
public bool SendWebhook { get; set; }
|
|
public bool FromWebhook { get; set; }
|
|
public string? RoleName { get; set; }
|
|
public string? RoleColor { get; set; }
|
|
|
|
public BwoinkParams(
|
|
SharedBwoinkSystem.BwoinkTextMessage message,
|
|
NetUserId senderId,
|
|
AdminData? senderAdmin,
|
|
string senderName,
|
|
INetChannel? senderChannel,
|
|
bool userOnly,
|
|
bool sendWebhook,
|
|
bool fromWebhook,
|
|
string? roleName = null,
|
|
string? roleColor = null)
|
|
{
|
|
Message = message;
|
|
SenderId = senderId;
|
|
SenderAdmin = senderAdmin;
|
|
SenderName = senderName;
|
|
SenderChannel = senderChannel;
|
|
UserOnly = userOnly;
|
|
SendWebhook = sendWebhook;
|
|
FromWebhook = fromWebhook;
|
|
RoleName = roleName;
|
|
RoleColor = roleColor;
|
|
}
|
|
}
|