DiscordSRV

DiscordSRV

86.8k Downloads

DiscordSRV Overwrite Config After Update

coco0325 opened this issue · 1 comments

commented

Everytime I update DiscordSRV, it always auto reset some options that I don't want.

New config:

MinecraftPlayerFirstJoinMessage: 
  Enabled: true
  Webhook:
    Enable: false
    AvatarUrl: "%botavatarurl%"
    Name: "%botname%"
  Content: ""
  Embed:
    Enabled: true
    Color: "#ffd700" <--------
    Author:
      ImageUrl: "%embedavatarurl%"
      Name: "%username% 首次加入了伺服器" <--------
      Url: ""
    ThumbnailUrl: ""
    Title:
      Text: ""
      Url: ""
    Description: ""
    Fields: []
    ImageUrl: ""
    Footer:
      Text: ""
      IconUrl: ""
    Timestamp: false

Old config:

MinecraftPlayerFirstJoinMessage: 
  Enabled: true
  Webhook:
    Enable: false
    AvatarUrl: "%botavatarurl%"
    Name: "%botname%"
  Content: ""
  Embed:
    Enabled: true
    Color: "#aff87e" <--------
    Author:
      ImageUrl: "%embedavatarurl%"
      Name: "✈冒險者 %username% 來到了SlimeLab" <--------
      Url: ""
    ThumbnailUrl: ""
    Title:
      Text: ""
      Url: ""
    Description: ""
    Fields: []
    ImageUrl: ""
    Footer:
      Text: ""
      IconUrl: ""
    Timestamp: false
commented

Config migration doesn't support options that are spread across multiple lines. It's something that'll be addressed one day, but it's an extremely low priority.