mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-03 13:12:11 +02:00
added to_banned
This commit is contained in:
parent
cffa69a758
commit
b1c386a3ac
@ -33,6 +33,8 @@ local discord_tag = '[DISCORD]'
|
||||
local discord_raw_tag = '[DISCORD-RAW]'
|
||||
local discord_bold_tag = '[DISCORD-BOLD]'
|
||||
local discord_admin_tag = '[DISCORD-ADMIN]'
|
||||
local discord_banned_tag = '[DISCORD-BANNED]'
|
||||
local discord_banned_embed_tag = '[DISCORD-BANNED-EMBED]'
|
||||
local discord_admin_raw_tag = '[DISCORD-ADMIN-RAW]'
|
||||
local discord_embed_tag = '[DISCORD-EMBED]'
|
||||
local discord_embed_raw_tag = '[DISCORD-EMBED-RAW]'
|
||||
@ -95,6 +97,12 @@ function Public.to_admin(message)
|
||||
raw_print(discord_admin_tag .. message)
|
||||
end
|
||||
|
||||
--- Sends a message to the linked banend discord channel. The message is sanitized of markdown server side.
|
||||
-- @param message<string> message to send.
|
||||
function Public.to_banned(message)
|
||||
raw_print(discord_banned_tag .. message)
|
||||
end
|
||||
|
||||
--- Sends a message to the linked admin discord channel. The message is not sanitized of markdown.
|
||||
-- @param message<string> message to send.
|
||||
function Public.to_admin_raw(message)
|
||||
@ -119,6 +127,12 @@ function Public.to_admin_embed(message)
|
||||
raw_print(discord_admin_embed_tag .. message)
|
||||
end
|
||||
|
||||
--- Sends a embed message to the linked banned discord channel. The message is sanitized of markdown server side.
|
||||
-- @param message<string> the content of the embed.
|
||||
function Public.to_banned_embed(message)
|
||||
raw_print(discord_banned_embed_tag .. message)
|
||||
end
|
||||
|
||||
--- Sends a embed message to the linked admin discord channel. The message is not sanitized of markdown.
|
||||
-- @param message<string> the content of the embed.
|
||||
function Public.to_admin_embed_raw(message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user