I have now completely deleted all configs (data, lang... ) and the plugin and reinstalled the plugin. I only entered the BotToken and the channel id in the new config. I have not yet assigned any authorisations.
I still get a message in the console. It reads
[DiscordExtension] [Error]: Rest Request Exception (Discord API Error). Plugin: DiscordSignLogger by MJSU v3.0.0 ID: 17148800055604412417 Request URL: [POST] interactions/1297944017677324339/aW50ZXJhY3Rpb246MTI5Nzk0NDAxNzY3NzMyNDMzOTpOcW9aTG5qMDB5b0lzRFB2Qlh5bDcwSm5PQU80ZFZ0bDdKTzdLS05FNHNRc3JXSk9yN2U1VGhJV054enllaEtCdXJKZzdvb2oxNVg3ZVQ5YWFhTWFnSFpjMlhCSUpFWDV0TExCV1dHanhSOU8zdVVmQVR4dHlYS25OdXRKZnVnZg/callback Content-Type: application/json; charset=utf-8 Http Response Code: BadRequest Discord Error Code: 40060 Discord Error: Interaction has already been acknowledged.
Discord Errors: Request Body:
{"data":{"embeds":[{"title":"","description":"[Discord Sign Logger] You do not have permission to perform this action","url":"","color":15548997,"footer":{"text":"DiscordSignLogger V3.0.0 by MJSU","icon_url":"https://assets.umod.org/images/icons/plugin/61f1b7f6da7b6.png"}}]},"type":4}
Merged post
@MJSU
I have now tried it on my test server.
Something seems to be wrong in your plugin.
Installed on the test server :
DiscordSignLogger.cs
ImageLibrary.cs
PlaceholderAPI.cs
SignArtist.cs
All json are new.
Discord ext dll up to date
When I paint an image and save it, the following appears in console:
Failed to call hook 'CanUpdateSign' on plugin 'DiscordSignLogger v3.0.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Ext.Discord.Libraries.TimeSpanPlaceholders.AppendTime (Oxide.Ext.Discord.Entities.DiscordInteraction interaction, System.Text.StringBuilder sb, System.Double total, System.Int32 value, System.String singular, System.String plural) [0x00044] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Ext.Discord.Libraries.TimeSpanPlaceholders.Formatted (Oxide.Ext.Discord.Libraries.PlaceholderState state, System.TimeSpan time) [0x0006e] in <8a2cf380572547ff94407315a997a052>:0 at (wrapper delegate-invoke) System.Func`3[Oxide.Ext.Discord.Libraries.PlaceholderState,System.TimeSpan,System.String].invoke_TResult_T1_T2(Oxide.Ext.Discord.Libraries.PlaceholderState,System.TimeSpan) at Oxide.Ext.Discord.Libraries.Placeholder`2[T,TResult].InvokeInternal (Oxide.Ext.Discord.Libraries.PlaceholderState state) [0x00029] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Ext.Discord.Libraries.BasePlaceholder`1[TResult].Invoke (System.Text.StringBuilder sb, Oxide.Ext.Discord.Libraries.PlaceholderState state) [0x00001] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Ext.Discord.Libraries.DiscordPlaceholders.ProcessPlaceholders (System.String text, Oxide.Ext.Discord.Libraries.PlaceholderData data) [0x000c5] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Plugins.DiscordSignLogger.Lang (System.String key, BasePlayer player, Oxide.Ext.Discord.Libraries.PlaceholderData data) [0x0000e] in <3c2a8285e86d4596bb42b4f0db08178e>:0 at Oxide.Plugins.DiscordSignLogger.Chat (BasePlayer player, System.String key, Oxide.Ext.Discord.Libraries.PlaceholderData data) [0x00000] in <3c2a8285e86d4596bb42b4f0db08178e>:0 at Oxide.Plugins.DiscordSignLogger.CanUpdateSign (BasePlayer player, BaseEntity entity) [0x00048] in <3c2a8285e86d4596bb42b4f0db08178e>:0 at Oxide.Plugins.DiscordSignLogger.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00ad5] in <3c2a8285e86d4596bb42b4f0db08178e>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
When I execute a 24 hour block, it is displayed that I have received it, but this does not take effect and the following message appears in the console:
Failed to call hook 'BanCommand' on plugin 'DiscordSignLogger v3.0.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Ext.Discord.Libraries.TimeSpanPlaceholders.AppendTime (Oxide.Ext.Discord.Entities.DiscordInteraction interaction, System.Text.StringBuilder sb, System.Double total, System.Int32 value, System.String singular, System.String plural) [0x00044] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Ext.Discord.Libraries.TimeSpanPlaceholders.Formatted (Oxide.Ext.Discord.Libraries.PlaceholderState state, System.TimeSpan time) [0x0004e] in <8a2cf380572547ff94407315a997a052>:0 at (wrapper delegate-invoke) System.Func`3[Oxide.Ext.Discord.Libraries.PlaceholderState,System.TimeSpan,System.String].invoke_TResult_T1_T2(Oxide.Ext.Discord.Libraries.PlaceholderState,System.TimeSpan) at Oxide.Ext.Discord.Libraries.Placeholder`2[T,TResult].InvokeInternal (Oxide.Ext.Discord.Libraries.PlaceholderState state) [0x00029] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Ext.Discord.Libraries.BasePlaceholder`1[TResult].Invoke (System.Text.StringBuilder sb, Oxide.Ext.Discord.Libraries.PlaceholderState state) [0x00001] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Ext.Discord.Libraries.DiscordPlaceholders.ProcessPlaceholders (System.String text, Oxide.Ext.Discord.Libraries.PlaceholderData data) [0x000c5] in <8a2cf380572547ff94407315a997a052>:0 at Oxide.Plugins.DiscordSignLogger.BanCommand (ConsoleSystem+Arg arg) [0x0008e] in <3c2a8285e86d4596bb42b4f0db08178e>:0 at Oxide.Plugins.DiscordSignLogger.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00bd8] in <3c2a8285e86d4596bb42b4f0db08178e>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
There are also errors with the other buttons.
Please 🙏 check this, because it all occurs even after a completely new server has been set up. Everything was ok before the updates.
Thank you very much