def modify_embed(enabled, channel, reason = nil)
      cache_embed_data if @embed_enabled.nil?
      channel_id = channel ? channel.resolve_id : @embed_channel_id
      response = JSON.parse(API::Server.modify_embed(@bot.token, @id, enabled, channel_id, reason))
      @embed_enabled = response['enabled']
      @embed_channel_id = response['channel_id']
    end
def modify_embed(enabled, channel, reason = nil)
      cache_embed_data if @embed_enabled.nil?
      channel_id = channel ? channel.resolve_id : @embed_channel_id
      response = JSON.parse(API::Server.modify_embed(@bot.token, @id, enabled, channel_id, reason))
      @embed_enabled = response['enabled']
      @embed_channel_id = response['channel_id']
    end
Changes the channel on the server's embed (widget), and sets whether it is enabled.
 @param enabled [true, false] whether the embed (widget) is enabled
 @param channel [Channel, String, Integer, #resolve_id] the channel to be referenced by the embed
 @param reason [String, nil] the reason to be shown in the audit log for this action